CVE-2022-51012
JSON

7.1high

PocketMine-MP before 4.2.9 Denial of Service via NBT Deserialization

Severity
7.1high CVSS:4.0 by VulnCheck
Exploit likelihood
0.51% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-g5rr-p69h-7v3g

Description

PocketMine-MP versions before 4.2.9 fail to properly validate NBT data types during deserialization of inventory transaction packets from clients. Attackers can send crafted inventory transactions with malformed NBT tags to trigger server crashes and cause denial of service.

Affected

Product or packageVersionsReported by
pmmp PocketMine-MPbefore 4.2.9
Not affected: 4.2.9
CVE List
pocketmine/pocketmine-mp (Packagist)before 4.2.9GitHub Advisory Database

All scores

VulnCheck7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-20CWE-1287

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

PocketMine-MP versions before 4.2.9 fail to properly validate NBT data types during deserialization of inventory transaction packets from clients. Attackers can send crafted inventory transactions with malformed NBT tags to trigger server crashes and cause denial of service.

GitHub Advisory Database
Impact

When an inventory interaction is performed (e.g. moving an item around an inventory), the client sends a serialized version of the itemstack to the server, which the server then deserializes and compares against its own copy. If the copies don't match, the transaction is invalid.

This involves deserializing item NBT from the client, which allows for bogus data to be provided. Usually, this is harmless, but in this particular case, it could result in crashes on certain types of bad data (e.g. incorrect ListTag type provided for the CanDestroy tag).

Patches

This is fixed in 4.2.9 by commit 5a98b08ee8dc8ff14862cd83d2e4af9d212fefc2.

Workarounds

It's non-trivial to workaround this, but can be done by handling InventoryTransactionPacket and PlayerAuthInputPacket to scrub inbound transaction data of bogus NBT that would cause these crashes.

For more information
NVD (es)

Las versiones de PocketMine-MP anteriores a la 4.2.9 no validan correctamente los tipos de datos NBT durante la deserialización de paquetes de transacciones de inventario de los clientes. Los atacantes pueden enviar transacciones de inventario manipuladas con etiquetas NBT malformadas para provocar caídas del servidor y causar una denegación de servicio.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-51012 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-g5rr-p69h-7v3g changed 2026-09-08CC-BY-4.0
NVDCVE-2022-51012 changed 2026-11-10Public domain