{"id":"CVE-2022-51012","aliases":["CVE-2022-51012","GHSA-g5rr-p69h-7v3g"],"related":[],"kind":"vulnerability","state":"published","title":"PocketMine-MP before 4.2.9 Denial of Service via NBT Deserialization","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen 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.\n\nThis 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).\n\n### Patches\nThis is fixed in 4.2.9 by commit 5a98b08ee8dc8ff14862cd83d2e4af9d212fefc2.\n\n### Workarounds\nIt'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.\n\n### For more information\n* Email us at [team@pmmp.io](mailto:team@pmmp.io)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2022-04-22T20:57:12.000Z","modified":"2026-11-10T12:10:00.177Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20","CWE-1287"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.2.9","status":"affected"},{"type":"semver","version":"4.2.9","status":"unaffected"}],"vendor":"pmmp","product":"PocketMine-MP","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.9"}],"ecosystem":"Packagist","package":"pocketmine/pocketmine-mp","purl":"pkg:composer/pocketmine/pocketmine-mp","source":"ghsa"}],"references":[{"url":"https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-g5rr-p69h-7v3g","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pmmp/PocketMine-MP/commit/5a98b08ee8dc8ff14862cd83d2e4af9d212fefc2","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/pocketmine-mp-before-4.2.9-denial-of-service-via-nbt-deserialization","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pmmp/PocketMine-MP","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pmmp/PocketMine-MP/blob/4.2.9/changelogs/4.2.md#429","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pmmp/PocketMine-MP/releases/tag/4.2.9","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-08T12:51:35.267Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-51012","url":"https://www.cve.org/CVERecord?id=CVE-2022-51012","licence":"CVE Terms of Use","modified":"2026-10-08T15:20:55.753Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g5rr-p69h-7v3g","url":"https://github.com/advisories/GHSA-g5rr-p69h-7v3g","licence":"CC-BY-4.0","modified":"2026-09-08T12:38:04.306Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-51012","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51012","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.453Z","epss":{"score":0.00508,"percentile":0.44892,"date":"2026-12-01T12:00:22.000Z"}}