🛡️ GHSA-46c5-pfj8-fv65 — pocketmine-mp
Description
Improperly checked metadata on tools/armour itemstacks received from the client
Impact
Due to a workaround applied in 1.13, an attacker may send a negative damage/meta value in a tool or armour item's NBT, which TypeConverter then blindly uses as if it was valid without being checked.
When this invalid metadata value reaches Durable->setDamage(), an exception is thrown because the metadata is not within the expected range for damage values.
This can be reproduced with either a too-large damage value, or a negative one.
Patches
c8e1cfcbee4945fd4b63d2a7e96025c59744d4f1
Workarounds
In theory this can be checked by plugins using a custom TypeConverter, but this is likely to be very cumbersome.
For more information
- Email us at [[email protected]](mailto:[email protected])
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 high.
Weakness class
GHSA-46c5-pfj8-fv65 is classified as CWE-704: Incorrect Type Conversion or Cast. The product does not correctly convert an object, resource, or structure from one type to a different type.
Affected software
GHSA-46c5-pfj8-fv65 is recorded against 1 package.
- pocketmine/pocketmine-mp (fixed in 4.2.4)
Timeline and source
Published on 18 March 2022 and last revised on 26 December 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| pocketmine/pocketmine-mp | — | 4.2.4 |
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
Site Security Check
Is pocketmine-mp part of your stack?
GHSA-46c5-pfj8-fv65 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
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.