🛡️ GHSA-g274-c6jj-h78p — pocketmine-mp

⚪ Unknown ✅ No Known Exploit CWE-770 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

PocketMine-MP allows malicious client data to waste server resources due to lack of limits for explode()

Impact

Due to lack of limits by default in the [explode()](https://www.php.net/manual/en/function.explode.php) function, malicious clients were able to abuse some packets to waste server CPU and memory.

This is similar to a previous security issue published in https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-gj94-v4p9-w672, but with a wider impact, including but not limited to:

  • Sign editing
  • LoginPacket JWT parsing
  • Command parsing

However, the estimated impact of these issues is low, due to other limits such as the packet decompression limit.

Patches

The issue was fixed in 5.25.2 via d0d84d4c5195fb0a68ea7725424fda63b85cd831.

A custom PHPStan rule has also been introduced to the project, which will henceforth require that all calls to explode() within the codebase must specify the limit parameter.

Workarounds

No simple way to fix this.

Given that sign editing is the easiest way this could be exploited, workarounds could include plugins pre-processing BlockActorDataPacket to check that the incoming text doesn't have more than 4 parts when split by \n.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability low.

Weakness class

GHSA-g274-c6jj-h78p 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-g274-c6jj-h78p is recorded against 1 package.

  • pocketmine/pocketmine-mp (fixed in 5.25.2)

Timeline and source

Published on 10 March 2025. 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)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CWE CWE-770
Public Exploit ✅ No
Source OSV
Published 2025-03-10
Updated 2026-08-20
Modified 2025-03-10
Fix URL N/A

Affected Packages

Software From version Fixed in
pocketmine/pocketmine-mp 5.25.2

Free Vulnerability Check

Is your site affected by GHSA-g274-c6jj-h78p?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-g274-c6jj-h78p and other known CVE records.

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