CVE-2026-135169 in msgpackinfo

Summary

by MITRE • 11/23/2026

msgpack-c C++ library cpp-3.0.0 through cpp-9.0.0 contains a use-after-free vulnerability in the Boost.X3 parser in include/msgpack/v2/x3_parse.hpp when built with MSGPACK_USE_X3_PARSE in reference mode. Attackers can supply crafted msgpack input parsed over buffering iterators so decoded str, bin and ext objects hold dangling pointers, disclosing freed heap memory or crashing the process.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability identified within the msgpack-c C++ library versions ranging from cpp-3.0.0 through cpp-9.0.0 represents a critical security flaw rooted in improper memory management during object deserialization. This specific issue manifests when the library is compiled with the MSGPACK_USE_X3_PARSE directive enabled and operates in reference mode, utilizing the Boost.X3 parser for processing input data. The core technical deficiency lies within the include/msgpack/v2/x3_parse.hpp header file, where the parsing logic fails to correctly manage the lifecycle of temporary objects created during the decoding process. When a crafted msgpack payload is processed over buffering iterators, the internal mechanisms responsible for handling string, binary, and extension types do not properly retain references to the underlying data buffers or fail to copy necessary content before intermediate temporaries are destroyed.

This architectural oversight leads directly to a use-after-free condition, classified under CWE-416 in industry standard vulnerability taxonomies. As the Boost.X3 parser processes the input stream, it creates temporary objects that hold pointers to memory regions allocated on the heap. Once these parsing operations complete or move to subsequent elements, the temporaries are destroyed and their associated memory is freed. However, the resulting decoded str, bin, and ext objects continue to retain references to these now-deallocated memory addresses. Consequently, any subsequent access to these fields results in reading from invalid memory locations that may have been reallocated for other purposes or simply marked as free by the operating system's memory manager.

The operational impact of this vulnerability is severe, presenting two primary attack vectors depending on the attacker's capabilities and the specific execution context. First, it can lead to information disclosure, where an adversary supplies a maliciously crafted msgpack input that triggers the read operation on freed heap memory. This allows the extraction of sensitive data previously stored in those memory regions, potentially revealing internal application states, cryptographic keys, or user credentials if such data was recently processed by the same allocator. Second, and often more immediately disruptive, is the potential for denial-of-service through process crashes. Accessing invalid pointers typically triggers segmentation faults or access violations within the host application, causing abrupt termination of the service and resulting in availability loss for end-users relying on the msgpack-based communication channel.

From a threat intelligence perspective, this vulnerability aligns with ATT&CK technique T1059, specifically Command Scripting if exploited via automated parsing tools, but more accurately reflects memory corruption patterns associated with exploitation frameworks aiming to achieve arbitrary code execution through heap spraying or information gathering prior to further exploitation steps like ROP chain construction. The reliance on buffering iterators exacerbates the risk because these constructs are often used in high-throughput network services where input validation is critical yet sometimes overlooked due to performance optimizations.

Mitigation strategies must prioritize immediate patching of the msgpack-c library to a version that addresses this memory management flaw, as all versions from 3.0.0 through 9.0.0 are affected. Organizations should verify their build configurations and ensure that updates include fixes for the x3_parse.hpp module's handling of reference types in Boost.X3 environments. In addition to patching, defensive coding practices such as implementing strict input validation before deserialization can reduce the attack surface. Security teams should also monitor application logs for unexpected crashes or segmentation faults associated with msgpack parsing routines and consider deploying runtime protection mechanisms like Address Sanitizers during development phases to detect similar memory safety issues early in the software lifecycle.

Responsible

VulnCheck

Reservation

11/23/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!