GHSA-7wrv-6h42-w54f: PocketMine-MP vulnerable to server crash using badly formatted sign NBT in BlockActorDataPacket
7.5
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
-
Published
7/14/2023
Updated
7/14/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:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pocketmine/pocketmine-mp | composer | >= 4.20.0, < 4.22.3 | 4.22.3 |
pocketmine/pocketmine-mp | composer | >= 5.0.0, < 5.2.1 | 5.2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from insufficient type validation in BlockActorDataPacket handling. The pre-patch code used $nbt->getCompoundTag(Sign::TAG_FRONT_TEXT) without checking if the tag was actually a CompoundTag. The stack trace shows the exception originated from this call. The commit diff proves the fix added explicit type checks (instanceof CompoundTag/StringTag) and proper error handling, confirming this was the vulnerable code path.