# CVE-2024-58380: PocketMine-MP denial of service in BookEditPacket handling

Source: https://junglewise.ai/threats/cve-2024-58380-pocketmine-mp-denial-of-service-in-bookeditpacket-handling  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-09. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2024-58380 · Severity: medium · CVSS 6.5 · Published 2026-09-09

PocketMine-MP is a popular game server software for Minecraft: Pocket Edition. A vulnerability in packet handling allows attackers to remotely crash the server by sending a malformed book-edit packet with an invalid inventory slot value, causing temporary unavailability and potential player session loss.

Technologies: [pocketmine/pocketmine-mp (Packagist)](https://junglewise.ai/threats/technologies/pocketmine-pocketmine-mp). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2024-58380 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-58380 being exploited in the wild.

**How severe is CVE-2024-58380?** Medium severity, with a CVSS score of 6.5, published 9 September 2026.

**Which products and versions are affected?** pocketmine/pocketmine-mp (Packagist) ECOSYSTEM:introduced=0,fixed=5.11.2.

**Is there a fix for CVE-2024-58380?** Yes. pocketmine/pocketmine-mp (Packagist): upgrade to 5.11.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-58380 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2024-58380?** Check whether you run pocketmine/pocketmine-mp (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- pocketmine/pocketmine-mp (Packagist): upgrade to 5.11.2 or later

  ```sh
  composer require pocketmine/pocketmine-mp:^5.11.2
  ```


## Technical details

The vulnerability is a denial of service in the BookEditPacket handler within InGamePacketHandler.php. When a client sends a BookEditPacket with an inventorySlot value greater than 35, the server attempts to access an invalid inventory index, triggering an unhandled exception in BaseInventory->getItem() that crashes the server. The attack requires a low-privilege authenticated client connection (player login). The fix, released in version 5.11.2, adds validation to check if the inventory slot exists before attempting to access it, preventing the exception.

## Affected products

- PocketMine PocketMine-MP before 5.11.2

## Identifiers

- CVE-2024-58380
- GHSA-xc7j-wj36-qjfr

## Timeline

- 2024-03-05: disclosed
- 2024-03-05: patched: Fixed in version 5.11.2

## References

- [https://github.com/pmmp/PocketMine-MP/commit/47f011966092f275cc1b11f8de635e89fd9651a7](https://github.com/pmmp/PocketMine-MP/commit/47f011966092f275cc1b11f8de635e89fd9651a7)
- [https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-xc7j-wj36-qjfr](https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-xc7j-wj36-qjfr)

## Related threats

- [PocketMine-MP denial of service in ModalFormResponsePacket handling](https://junglewise.ai/threats/cve-2026-86204-pocketmine-mp-denial-of-service-in-modalformresponsepacket)
- [PocketMine-MP item duplication via despawn entity attack race condition](https://junglewise.ai/threats/cve-2026-86203-pocketmine-mp-item-duplication-via-despawn-entity-attack-race)
- [PocketMine-MP network amplification in ActorEventPacket](https://junglewise.ai/threats/cve-2026-86202-pocketmine-mp-network-amplification-in-actoreventpacket)
- [PocketMine-MP denial of service in LoginPacket processing](https://junglewise.ai/threats/cve-2026-86201-pocketmine-mp-denial-of-service-in-loginpacket-processing)
- [PocketMine-MP denial of service in LoginPacket handler](https://junglewise.ai/threats/cve-2026-86200-pocketmine-mp-denial-of-service-in-loginpacket-handler)
