PocketMine-MP allows malicious client data to waste server resources due to lack of limits for explode()
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-770.
Summary
### 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`.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | pocketmine/pocketmine-mp (Packagist) | before 5.25.2 | 5.25.2 | Patch available | GHSA-g274-c6jj-h78p |
- pocketmine/pocketmine-mp (Packagist) Vendor— Affected before 5.25.2 Fixed in 5.25.2 Patch available GHSA-g274-c6jj-h78p
Remediation
- Fix · GHSA-g274-c6jj-h78p pocketmine/pocketmine-mp (Packagist) Fixed in 5.25.2 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-g274-c6jj-h78p
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences