Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pocketmine/pocketmine-mp
  4. ›
  5. GMS-2022-458

GMS-2022-458: Improperly checked metadata on tools/armour itemstacks received from the client

March 18, 2022 (updated March 22, 2022)

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.

References

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

Code Behaviors & Features

Detect and mitigate GMS-2022-458 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.2.4

Fixed versions

  • 4.2.4

Solution

Upgrade to version 4.2.4 or above.

Source file

packagist/pocketmine/pocketmine-mp/GMS-2022-458.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:43 +0000.