msgpack
Affected
- introduced
0, fixed1.2.1(ecosystem)
Fixed versions
1.2.1
Fix
- Fixed version
1.2.1pip install --upgrade msgpack==1.2.1
Advisory
Also known as: CVE-2026-57585, PYSEC-2026-3625
MessagePack for Python: Out-of-bounds read / crash on Unpacker reuse after a caught error
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.
High Basis: The source's own band: HIGH
0, fixed 1.2.1 (ecosystem)1.2.1
1.2.1pip install --upgrade msgpack==1.2.1Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0