CVE-2022-51011: PocketMine-MP denial-of-service in chat message parsing

CVE-2022-51011 · Severity: medium · CVSS 4.3 · Published 2026-09-07

PocketMine-MP is a Minecraft server implementation. A flaw in chat message handling allows attackers to send maliciously crafted messages containing many newlines to cause the server to lock up for seconds or minutes, disrupting service availability for all connected players.

Technologies: pocketmine/pocketmine-mp (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2022-51011 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-51011 being exploited in the wild.
How severe is CVE-2022-51011?
Medium severity, with a CVSS score of 4.3, published 7 September 2026.
Which products and versions are affected?
pocketmine/pocketmine-mp (Packagist) ECOSYSTEM:introduced=0,fixed=4.2.10.
Is there a fix for CVE-2022-51011?
Yes. pocketmine/pocketmine-mp (Packagist): upgrade to 4.2.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-51011 attacked?
It is attacked over the network.
Am I affected by CVE-2022-51011?
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.2.10 or later
    composer require pocketmine/pocketmine-mp:^4.2.10

Technical details

The vulnerability is a denial-of-service flaw in chat message processing. PocketMine-MP enforces a 512-character limit on individual chat messages but fails to validate the total length of the incoming message blob before splitting it by newline characters (\n). An attacker with low privileges (ability to connect as a player) can craft a multi-megabyte message containing only newlines, which the server will parse into a very large array and iterate over, consuming significant CPU time. Additionally, rate limiting checks occur after message parsing rather than before, allowing an attacker to bombard the server with thousands of such messages. The fix (version 4.2.10) validates total message length upfront and limits message splits to a maximum of 3 parts.

Affected products

  • PocketMine PocketMine-MP before 4.2.10

Identifiers

  • CVE-2022-51011
  • GHSA-gj94-v4p9-w672

Timeline

  • 2022-05-22: disclosed: GitHub Security Advisory GHSA-gj94-v4p9-w672 published
  • 2022-05-22: patched: Fix included in version 4.2.10 (commit df33e17)

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.