Advisory

GHSA-h87r-f4vc-mchv

Also known as: CVE-2023-7332

Summary

PocketMine-MP vulnerable to improperly checked dropped item count leading to server crash

Details

Impact
In 4.18.0, the network handling of inventories was completely revamped. Due to this, a bug was introduced which allowed players to request that the server drop more of an item than they had available in their hotbar.

This did not lead to any duplication issues, but instead led to a server crash, and is believed to have been exploited in the wild.

Patches
This was fixed in 58974765a68f63a9968a7ff3a06f584ff2ee08d2, which was released in 4.18.1.

Workarounds
Handle InventoryTransactionPacket in DataPacketReceiveEvent, and verify that the item count dropped isn't more than the available item count. However, it's complicated to do this, so it's not recommended.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-06-06 01:51 UTC
Modified
2026-02-03 03:15 UTC

Affected packages and fixes

pocketmine/pocketmine-mp

Packagist · All systems

Affected

  • introduced 0, fixed 4.18.1 (ecosystem)

Fixed versions

4.18.1

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