Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pocketmine/pocketmine-mp
  4. ›
  5. GHSA-h6j3-j35f-v2x7

GHSA-h6j3-j35f-v2x7: PocketMine-MP server crash with certain invalid JSON payloads in `LoginPacket` due to dependency vulnerability (3rd time)

March 6, 2024

Impact

An attacker could crash the server by sending malformed JWT JSON in LoginPacket due to a security vulnerability in netresearch/jsonmapper, due to attempting to construct objects from scalar types by default without any validation, with unexpected results that caused PocketMine-MP to crash.

Due to the relatively high number of security issues arising from this specific dependency, the team is exploring options to replace it.

Patches

In the meantime, the issue was fixed by pmmp/netresearch-jsonmapper@b96a209f9e8b76b899a0d0918493cd87eb3c02a7 and 6872661fd03649cc7a8762c41c16e9ee5a4de1c9.

Workarounds

Detecting the malicious data that triggers this issue is of rather high difficulty, so it’s not likely that a plugin would be able to easily remediate this.

References

https://github.com/cweiske/jsonmapper/issues/226

References

  • github.com/advisories/GHSA-h6j3-j35f-v2x7
  • github.com/cweiske/jsonmapper/issues/226
  • github.com/pmmp/PocketMine-MP
  • github.com/pmmp/PocketMine-MP/commit/6872661fd03649cc7a8762c41c16e9ee5a4de1c9
  • github.com/pmmp/PocketMine-MP/security/advisories/GHSA-h6j3-j35f-v2x7
  • github.com/pmmp/netresearch-jsonmapper/commit/b96a209f9e8b76b899a0d0918493cd87eb3c02a7

Code Behaviors & Features

Detect and mitigate GHSA-h6j3-j35f-v2x7 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 5.11.1

Fixed versions

  • 5.11.1

Solution

Upgrade to version 5.11.1 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

Source file

packagist/pocketmine/pocketmine-mp/GHSA-h6j3-j35f-v2x7.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:53 +0000.