Incorrect Type Conversion Affecting pocketmine/pocketmine-mp package, versions <4.2.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-POCKETMINEPOCKETMINEMP-2431236
  • published22 Mar 2022
  • disclosed18 Mar 2022
  • creditUnknown

Introduced: 18 Mar 2022

CVE NOT AVAILABLE CWE-704  (opens in a new tab)

How to fix?

Upgrade pocketmine/pocketmine-mp to version 4.2.4 or higher.

Overview

pocketmine/pocketmine-mp is a highly customisable, open source server software for Minecraft: Bedrock Edition written in PHP

Affected versions of this package are vulnerable to Incorrect Type Conversion due to improper metadata value check on tools/armour itemstacks received from the client, which TypeConverter then blindly uses as if it was valid. 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

CVSS Scores

version 3.1