All reports
High

MessagePack for Python: Out-of-bounds read / crash on Unpacker reuse after a caught error

Affected versions

Version ranges need review.

Affected versions
<= 1.2.0
Fixed version
1.2.1
Affected versions
<1.2.1
Fixed version
1.2.1
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-57585

Probability of exploitation in the next 30 days: 0.49%

FIRST EPSS · 2026-11-20

Description

Impact

If the Unpacker is used repeatedly after an error occurs, the process may crash with a SEGV.

If the Unpacker is used repeatedly to unpack untrusted input from external sources, it may be vulnerable to a DoS attack.

Patches

v1.2.1

Workarounds

Users should create a new Unpacker instead of reusing the same Unpacker after an error occurs.

Applying the above patch can prevent SEGV, but reusing the Streaming Unpacker after it has encountered an error will not yield correct data. If an error occurs during Streaming Unpacking, the Stream and Streaming Unpacker should be discarded.

Therefore, this is not just a workaround but the correct solution. The above patch only prevents crashes from incorrect usage.

Links

Credits

  • oakkaya