GHSA-gj94-v4p9-w672: Denial-of-service vulnerability processing large chat messages containing many newlines
5.3
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
-
Published
5/25/2022
Updated
1/11/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| pocketmine/pocketmine-mp | composer | < 4.2.10 | 4.2.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues: 1) splitting messages before validating total length, and 2) lack of splitting limits. The PlayerNetworkSessionAdapter's text packet handler would be responsible for initial message processing and splitting, while TextPacket's splitting logic would directly create the vulnerable array. The patch adds pre-split length checks and split limits, confirming these as the vulnerable areas. The functions are inferred from standard PocketMine-MP architecture and the described vulnerability pattern.