🛡️ GHSA-g274-c6jj-h78p — pocketmine-mp
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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| pocketmine/pocketmine-mp | — | 5.25.2 |
References
Similar Threats
- High GHSA-788v-5pfp-93ff
- Unknown GHSA-7hmv-4j2j-pp6f
- Low GHSA-f9jp-856v-8642
- High GHSA-h6rj-3m53-887h
- High GHSA-fqqv-56h5-f57g
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.