Loading advisory.
Loading advisory.
Buffer length underflow in LoginPacket causing unchecked exceptions to be thrown
LoginPacket uses BinaryStream->getLInt() to read the lengths of JSON payloads it wants to decode. Unfortunately, BinaryStream->getLInt() returns a signed integer, meaning that a malicious client can craft a packet with a large uint32 value for payload buffer size (which would be interpreted as a…
Published 2022-04-05 17:53 UTC · Modified 2024-12-05 05:39 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| pocketmine/bedrock-protocol | Packagist | < 8.0.2 versions 1.0.0+bedrock-1.17.10, 1.1.0+bedrock-1.17.10, 2.0.0+bedrock-1.17.30, 3.0.0+bedrock-1.17.40, 3.0.1+bedrock-1.17.40, 3.0.2+bedrock-1.17.40, 4.0.0+bedrock-1.17.40, 4.0.1+bedrock-1.17.40, 5.0.0+bedrock-1.17.40, 5.1.0+bedrock-1.17.40, 5.1.1+bedrock-1.17.40, 5.1.2+bedrock-1.17.40, 5.1.3+bedrock-1.17.40, 6.0.0+bedrock-1.17.40, 7.0.0+bedrock-1.18.0, 7.1.0+bedrock-1.18.0, 7.2.0+bedrock-1.18.0, 7.3.0+bedrock-1.18.0, 7.3.1+bedrock-1.18.0, 8.0.0+bedrock-1.18.10 and 2 more | 8.0.2 | composer require 'pocketmine/bedrock-protocol:>=8.0.2' |
LoginPacket uses BinaryStream->getLInt() to read the lengths of JSON payloads it wants to decode. Unfortunately, BinaryStream->getLInt() returns a signed integer, meaning that a malicious client can craft a packet with a large uint32 value for payload buffer size (which would be interpreted as a negative signed int32), causing BinaryStream->get() to throw an exception.
In the context of PocketMine-MP, this leads to a server crash when the vulnerability is exploited.
e3fce7632b94e83fd6a518a87dcaf6a11681c4ac
This can be worked around by registering a custom LoginPacket implementation into PacketPool which overrides this code to patch it.
Email us at team@pmmp.io
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.