Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pocketmine/pocketmine-mp
  4. ›
  5. GHSA-46c5-pfj8-fv65

GHSA-46c5-pfj8-fv65: Improperly checked metadata on tools/armour itemstacks received from the client

March 18, 2022 (updated December 26, 2025)

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.

References

  • github.com/advisories/GHSA-46c5-pfj8-fv65
  • github.com/pmmp/PocketMine-MP
  • github.com/pmmp/PocketMine-MP/commit/c8e1cfcbee4945fd4b63d2a7e96025c59744d4f1
  • github.com/pmmp/PocketMine-MP/security/advisories/GHSA-46c5-pfj8-fv65

Code Behaviors & Features

Detect and mitigate GHSA-46c5-pfj8-fv65 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.2.4

Fixed versions

  • 4.2.4

Solution

Upgrade to version 4.2.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-704: Incorrect Type Conversion or Cast

Source file

packagist/pocketmine/pocketmine-mp/GHSA-46c5-pfj8-fv65.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:08 +0000.