Advisory

GHSA-xh99-hw7h-wf63

Also known as: CVE-2022-51015

Summary

Unchecked validity of Facing values in PlayerActionPacket

Details

Impact
A remote attacker may crash a server by sending PlayerActionPacket with invalid facing values (e.g. negative), specifically with START_BREAK or CRACK_BLOCK actions, or with a UseItemTransactionData (typically in InventoryTransactionPacket).

Patches
f126479c37ff00a717a828f5271cf8e821d12d6c

Workarounds
Using a plugin, cancel DataPacketReceiveEvent if the packet is PlayerActionPacket and the facing is outside the range 0-5 when receiving START_BREAK or CRACK_BLOCK actions, or UseItemTransactionData. However, beware that negative values may be legitimate in some cases.

For more information
If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-13 22:25 UTC
Modified
2026-09-08 12:38 UTC

Affected packages and fixes

pocketmine/pocketmine-mp

Packagist · All systems

Affected

  • introduced 0, fixed 4.0.6 (ecosystem)

Fixed versions

4.0.6

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