{"id":"CVE-2022-51014","aliases":["GHSA-wjfq-88q2-r34j"],"url":"https://o3.security/vulnerability/CVE-2022-51014","summary":"PocketMine-MP before 4.0.7 Denial of Service via JSON Decoding","details":"### Impact\nWhen handling form responses from the client (`ModalFormResponsePacket`), the Minecraft Windows client may send weird JSON that `json_decode()` can't understand. A workaround for this is implemented in `InGamePacketHandler::stupid_json_decode()`.\n\nAn `InvalidArgumentException` is thrown by this function when it fails to fix an error found in the JSON, which is not caught by the caller. This leads to a server crash.\n\n### Patches\n56fe71d939c38fe14e18a31a673a9331bcc0e4ca\n\n### Workarounds\nA plugin may handle `DataPacketReceiveEvent`, capture `ModalFormResponsePacket` and run the provided JSON through `stupid_json_decode`.\n\nNote that this requires copying the body of the function to a plugin, since the function is currently private.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [team@pmmp.io](mailto:team@pmmp.io)","published":"2026-09-07T12:55:07.817Z","modified":"2026-11-12T02:30:33.692423998Z","cvss":null,"epss":{"score":0.0053,"percentile":0.38254,"asOf":"2026-11-26"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"pocketmine/pocketmine-mp","fixedVersion":"4.0.7"}],"fix":{"url":"https://github.com/pmmp/PocketMine-MP/commit/56fe71d939c38fe14e18a31a673a9331bcc0e4ca","label":"pmmp/PocketMine-MP@56fe71d"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51014.json"},{"type":"ADVISORY","url":"https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-wjfq-88q2-r34j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51014"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/pocketmine-mp-before-4.0.7-denial-of-service-via-json-decoding"},{"type":"FIX","url":"https://github.com/pmmp/PocketMine-MP/commit/56fe71d939c38fe14e18a31a673a9331bcc0e4ca"},{"type":"PACKAGE","url":"https://github.com/pmmp/PocketMine-MP"},{"type":"WEB","url":"https://github.com/pmmp/PocketMine-MP/blob/4.0.7/changelogs/4.0.md#407"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-12T02:30:33.692423998Z"}}