{"id":"CVE-2022-51014","aliases":["CVE-2022-51014","GHSA-wjfq-88q2-r34j"],"related":[],"kind":"vulnerability","state":"published","title":"PocketMine-MP before 4.0.7 Denial of Service via JSON Decoding","summary":"PocketMine-MP before 4.0.7 contains an unhandled exception vulnerability in the ModalFormResponsePacket handler when processing malformed JSON from clients. Attackers can send specially crafted form response packets with invalid JSON to trigger an uncaught InvalidArgumentException, causing server crashes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PocketMine-MP before 4.0.7 contains an unhandled exception vulnerability in the ModalFormResponsePacket handler when processing malformed JSON from clients. Attackers can send specially crafted form response packets with invalid JSON to trigger an uncaught InvalidArgumentException, causing server crashes.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"PocketMine-MP anterior a la versión 4.0.7 contiene una vulnerabilidad de excepción no controlada en el controlador ModalFormResponsePacket al procesar JSON malformado de los clientes. Los atacantes pueden enviar paquetes de respuesta de formulario especialmente diseñados con JSON no válido para activar una InvalidArgumentException no detectada, lo que provoca caídas del servidor.","source":"nvd"}],"published":"2022-01-21T23:02:14.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-248"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.0.7","status":"affected"},{"type":"semver","version":"4.0.7","status":"unaffected"}],"vendor":"pmmp","product":"PocketMine-MP","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.7"}],"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-wjfq-88q2-r34j","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pmmp/PocketMine-MP/commit/56fe71d939c38fe14e18a31a673a9331bcc0e4ca","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/pocketmine-mp-before-4.0.7-denial-of-service-via-json-decoding","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.0.7/changelogs/4.0.md#407","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-09T14:32:47.900Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-51014","url":"https://www.cve.org/CVERecord?id=CVE-2022-51014","licence":"CVE Terms of Use","modified":"2026-10-08T15:20:56.955Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wjfq-88q2-r34j","url":"https://github.com/advisories/GHSA-wjfq-88q2-r34j","licence":"CC-BY-4.0","modified":"2026-09-08T12:38:31.849Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-51014","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51014","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"}}