CVE-2026-57585
Awaiting Analysis Awaiting Analysis - Queue

Out-of-bounds Read in Python msgpack Unpacker Reuse

Vulnerability report for CVE-2026-57585, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-30

Last updated on: 2026-07-01

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-30
Last Modified
2026-07-01
Generated
2026-07-21
AI Q&A
2026-07-01
EPSS Evaluated
2026-07-19
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
msgpack msgpack_python to 1.2.1 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-416 The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the MessagePack serializer implementation for Python (msgpack.org) versions prior to 1.2.1. It involves an out-of-bounds read or crash that occurs when the Unpacker object is reused after an error has been caught during unpacking. Specifically, if the Unpacker is used repeatedly after an error, the process may crash with a segmentation fault (SEGV).

Detection Guidance

This vulnerability occurs when the msgpack-python Unpacker is reused after an error, leading to a crash (segmentation fault). Detection involves monitoring for crashes or segmentation faults in applications using msgpack-python versions prior to 1.2.1.

Since the issue is triggered by processing untrusted or malformed input that causes the Unpacker to fail and then be reused, one way to detect it is to test the application with crafted inputs that cause unpacking errors and observe if the process crashes.

There are no specific built-in commands or network detection signatures provided in the resources. However, you can monitor application logs for segmentation faults or crashes related to msgpack unpacking.

For manual testing, you can write a Python script that uses msgpack-python versions <= 1.2.0 to unpack corrupted or invalid MessagePack data repeatedly with the same Unpacker instance after an error to see if it crashes.

Example approach (not a direct command):

  • Create a Python script that attempts to unpack invalid MessagePack data using the Unpacker repeatedly after catching an exception.
  • Run the script and observe if a segmentation fault or crash occurs.

Additionally, monitoring system logs (e.g., dmesg or syslog) for segfaults related to your Python process can help detect exploitation attempts.

Impact Analysis

The primary impact of this vulnerability is a denial-of-service (DoS) attack. An attacker could cause the process using the vulnerable MessagePack Unpacker to crash repeatedly by triggering errors and reusing the Unpacker, leading to service interruptions.

Compliance Impact

The vulnerability in MessagePack prior to version 1.2.1 causes an out-of-bounds read and potential crash (DoS) when reusing the Unpacker after an error. This issue affects availability but does not impact confidentiality or integrity.

Since the vulnerability leads to a denial of service without compromising data confidentiality or integrity, its direct impact on compliance with standards like GDPR or HIPAAβ€”which focus heavily on data protection and privacyβ€”is limited.

However, availability is also a component of many security frameworks, so organizations relying on MessagePack may need to consider the risk of service disruption in their compliance assessments.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade the MessagePack Python library to version 1.2.1 or later, where the issue has been fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-57585. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart