🛡️ GHSA-46c5-pfj8-fv65 — pocketmine-mp

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-704 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

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

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

github.com (Web)
github.com (Web)
github.com (Package)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE CWE-704
Public Exploit ✅ No
Source OSV
Published 2022-03-18
Updated 2026-08-20
Modified 2025-12-26
Fix URL N/A

Affected Packages

Software From version Fixed in
pocketmine/pocketmine-mp 4.2.4

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.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated