Advisory

GHSA-xc7j-wj36-qjfr

Also known as: CVE-2024-58380

Summary

PocketMine-MP BookEditPacket crash when inventory slot in the packet is invalid

Details

Summary
If a client sends a BookEditPacket with InventorySlot greater than 35, the server will crash due to an unhandled exception thrown by BaseInventory->getItem().

Details
Crashes at https://github.com/pmmp/PocketMine-MP/blob/b744e09352a714d89220719ab6948a010ac636fc/src/network/mcpe/handler/InGamePacketHandler.php#L873

PoC
Using Gophertunnel, use serverConn.WritePacket(&packet.BookEdit{InventorySlot: 36})

Impact
Server crash, all servers

Patched versions
This issue was fixed by 47f011966092f275cc1b11f8de635e89fd9651a7, and the fix was released in 5.11.2.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-03-06 17:01 UTC
Modified
2026-09-10 03:56 UTC

Affected packages and fixes

pocketmine/pocketmine-mp

Packagist · All systems

Affected

  • introduced 0, fixed 5.11.2 (ecosystem)

Fixed versions

5.11.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences