# CVE-2022-51014: PocketMine-MP unhandled exception in form response handling

Source: https://junglewise.ai/threats/cve-2022-51014-pocketmine-mp-unhandled-exception-in-form-response-handling  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-07. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2022-51014 · Severity: medium · CVSS 6.5 · Published 2026-09-07

PocketMine-MP is a server software for the Minecraft Pocket Edition game that handles client connections and gameplay. An attacker connected to the server can crash it by sending specially crafted form response packets with invalid JSON, disrupting service availability for all players on that server.

Technologies: [pocketmine/pocketmine-mp (Packagist)](https://junglewise.ai/threats/technologies/pocketmine-pocketmine-mp). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## 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

  ```sh
  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

## References

- [https://github.com/pmmp/PocketMine-MP/commit/56fe71d939c38fe14e18a31a673a9331bcc0e4ca](https://github.com/pmmp/PocketMine-MP/commit/56fe71d939c38fe14e18a31a673a9331bcc0e4ca)
- [https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-wjfq-88q2-r34j](https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-wjfq-88q2-r34j)

## Related threats

- [PocketMine-MP denial of service in ModalFormResponsePacket handling](https://junglewise.ai/threats/cve-2026-86204-pocketmine-mp-denial-of-service-in-modalformresponsepacket)
- [PocketMine-MP item duplication via despawn entity attack race condition](https://junglewise.ai/threats/cve-2026-86203-pocketmine-mp-item-duplication-via-despawn-entity-attack-race)
- [PocketMine-MP network amplification in ActorEventPacket](https://junglewise.ai/threats/cve-2026-86202-pocketmine-mp-network-amplification-in-actoreventpacket)
- [PocketMine-MP denial of service in LoginPacket processing](https://junglewise.ai/threats/cve-2026-86201-pocketmine-mp-denial-of-service-in-loginpacket-processing)
- [PocketMine-MP denial of service in LoginPacket handler](https://junglewise.ai/threats/cve-2026-86200-pocketmine-mp-denial-of-service-in-loginpacket-handler)
