CVE-2026-57585
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.28% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6v7p-g79w-8964PYSEC-2026-3625

Description

MessagePack is the serializer implementation for Python msgpack.org. Prior to 1.2.1, there is an Out-of-bounds read/crash on Unpacker reuse after a caught error, potentially leading to a DoS attack. If the Unpacker is used repeatedly after an error occurs, the process may crash with a SEGV. This issue has been fixed in version 1.2.1.

Affected

Product or packageVersionsReported by
msgpack msgpack-python< 1.2.1CVE List
msgpack (PyPI)before 1.2.1GitHub Advisory Database, PyPA Advisory Database
msgpack messagepackbefore 1.2.1NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

MessagePack is the serializer implementation for Python msgpack.org. Prior to 1.2.1, there is an Out-of-bounds read/crash on Unpacker reuse after a caught error, potentially leading to a DoS attack. If the Unpacker is used repeatedly after an error occurs, the process may crash with a SEGV. This issue has been fixed in version 1.2.1.

GitHub Advisory Database
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.

NVD (es)

MessagePack es la implementación del serializador para Python msgpack.org. Antes de la versión 1.2.1, existe una lectura fuera de límites/un fallo al reutilizar el Unpacker después de un error capturado, lo que podría conducir a un ataque DoS. Si el Unpacker se utiliza repetidamente después de que ocurra un error, el proceso podría fallar con un SEGV. Este problema ha sido solucionado en la versión 1.2.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-57585 changed 2026-07-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-6v7p-g79w-8964 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-57585 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-3625 changed 2026-08-07CC-BY-4.0