CVE-2024-58381
JSON

8.7high

PocketMine-MP before 5.11.1 Denial of Service via LoginPacket

Severity
8.7high CVSS:4.0 by VulnCheck
Exploit likelihood
0.78% (higher than 52% of CVEs)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-h6j3-j35f-v2x7

Description

PocketMine-MP before 5.11.1 contains a denial of service vulnerability in LoginPacket JSON processing that allows remote attackers to crash the server by sending malformed JSON data. Attackers can exploit improper object initialization from scalar JSON types to trigger unset required properties, causing the application to crash.

Affected

Product or packageVersionsReported by
pmmp PocketMine-MPbefore 5.11.1
Not affected: 5.11.1
CVE List
pocketmine/pocketmine-mp (Packagist)before 5.11.1GitHub Advisory Database

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

PocketMine-MP before 5.11.1 contains a denial of service vulnerability in LoginPacket JSON processing that allows remote attackers to crash the server by sending malformed JSON data. Attackers can exploit improper object initialization from scalar JSON types to trigger unset required properties, causing the application to crash.

GitHub Advisory Database
Impact

An attacker could crash PocketMine-MP by sending malformed JSON in LoginPacket.

netresearch/jsonmapper allows objects to be hydrated from scalar types in JSON. However, due to the lack of validation in the code for this feature, it may output improperly initialized objects if applied to objects whose constructors don't handle the input values.

Code handling these objects in PocketMine-MP could then crash due to @required properties not being set within the objects.

In addition, because JsonMapper does not respect bStrictObjectTypes when processing arrays, it's not possible to avoid the issue by disabling the feature.

Due to the relatively high number of security issues arising from unexpected behaviour in JsonMapper, 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/pull/225 https://github.com/cweiske/jsonmapper/issues/226

NVD (es)

PocketMine-MP en versiones anteriores a la 5.11.1 contiene una vulnerabilidad de denegación de servicio en el procesamiento JSON de LoginPacket que permite a atacantes remotos provocar la caída del servidor mediante el envío de datos JSON malformados. Los atacantes pueden explotar una inicialización de objeto incorrecta a partir de tipos JSON escalares para desencadenar propiedades requeridas no establecidas, lo que provoca la caída de la aplicación.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-58381 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-h6j3-j35f-v2x7 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-58381 changed 2026-10-27Public domain