Quick answers
- Is CVE-2022-51014 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2022-51014 being exploited in the wild.
- How severe is CVE-2022-51014?
- Medium severity, with a CVSS score of 6.5, published 7 September 2026.
- Which products and versions are affected?
- pocketmine/pocketmine-mp (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=4.0.7.
- Is there a fix for CVE-2022-51014?
- Yes. pocketmine/pocketmine-mp (Packagist): upgrade to 4.0.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2022-51014 attacked?
- It is attacked over the network.
- Am I affected by CVE-2022-51014?
- Check whether you run pocketmine/pocketmine-mp (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- pocketmine/pocketmine-mp (Packagist): upgrade to 4.0.7 or later
composer require pocketmine/pocketmine-mp:^4.0.7
Technical details
The vulnerability is an unhandled exception (InvalidArgumentException) in the ModalFormResponsePacket handler's JSON decoding function. When a Minecraft Windows client sends malformed JSON that cannot be parsed by json_decode(), the stupid_json_decode() workaround function attempts to repair it but throws an uncaught InvalidArgumentException if the repair fails. This exception propagates uncaught, causing a server crash. The attack requires network access to the server (a player connection) and low privileges; no user interaction on the target is required. The fix (commit 56fe71d) changes the exception type from InvalidArgumentException to PacketHandlingException, which is properly caught by the caller.
Affected products
- PocketMine PocketMine-MP 4.0.0 to 4.0.6
Identifiers
- CVE-2022-51014
- GHSA-wjfq-88q2-r34j
Timeline
- 2022-01-21: disclosed
- 2022-01-21: patched: Fixed in version 4.0.7