CVE-2026-135168

msgpack-c cpp-3.0.0 through cpp-9.0.0 Out-of-Bounds Read via Boost.X3 Parser

Published Nov 23, 2026 CVSS 4.0 · 6.3 Medium EPSS n/a KEV · Not listed
Description
msgpack-c C++ library cpp-3.0.0 through cpp-9.0.0, when built with MSGPACK_USE_X3_PARSE, contains an out-of-bounds heap read in x3_parse.hpp due to assuming contiguous input. Attackers can supply msgpack str, bin or ext values unpacked from non-contiguous containers like std::deque, causing memcpy past storage blocks and disclosing adjacent heap memory.

Analysis

AI-generated

Technical impact

The flaw resides in the msgpack-c C++ library between versions 3.0.0 and 9.0.0 when compiled with the MSGPACK_USE_X3_PARSE macro. During parsing of msgpack string, binary, or extension values extracted from non-contiguous containers such as std::deque, the parser assumes that input data is contiguous. This assumption leads to a memcpy that travels beyond the intended buffer boundaries, reading adjacent heap memory. The attacker can craft a msgpack payload that triggers this memory overflow, thereby potentially exposing sensitive data that resides in nearby heap locations. The vulnerability does not grant direct code execution but can leak confidential information and compromise the confidentiality of the affected process.

Affected Systems

Any application that links against the msgpack-c library with versions cpp-3.0.0 through cpp-9.0.0 and that builds the library using the MSGPACK_USE_X3_PARSE configuration option is vulnerable. The issue surfaces whenever the library parses msgpack data that originates from non-contiguous containers, such as std::deque, std::list, or other sequence types that do not guarantee contiguous storage. Systems that use these library versions in a context where external or untrusted data is deserialized are at risk.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity, reflecting the impact on confidentiality and the likely need for the attacker to supply crafted data to the vulnerable component. No public exploit has been reported, and the EPSS score is not available, suggesting that exploitation is not currently in widespread use. The vulnerability is not listed in CISA’s KEV catalog. The most plausible attack vector is the delivery of malicious msgpack content to an application that deserializes data using the affected parser. If the application exposes a network interface or processes files from untrusted sources, remote delivery is possible; otherwise, the attack is local. Because the flaw is an out-of-bounds read, it does not permit arbitrary code execution, but the potential for information disclosure still warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a msgpack-c release beyond 9.0.0 where the issue has been corrected.
  • If an upgrade cannot be performed, recompile the library without the MSGPACK_USE_X3_PARSE option so that the default parsing logic is used instead of the X3 parser.
  • Saturate input validation by ensuring that only data from trusted sources reaches the deserialization routine, or by sanitizing externally supplied msgpack payloads before parsing.
  • Keep the application updated with the latest security advisories for msgpack-c and monitor the project’s release notes for additional mitigations.

Generated by OpenCVE AI on November 23, 2026 at 15:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description msgpack-c C++ library cpp-3.0.0 through cpp-9.0.0, when built with MSGPACK_USE_X3_PARSE, contains an out-of-bounds heap read in x3_parse.hpp due to assuming contiguous input. Attackers can supply msgpack str, bin or ext values unpacked from non-contiguous containers like std::deque, causing memcpy past storage blocks and disclosing adjacent heap memory.
Title msgpack-c cpp-3.0.0 through cpp-9.0.0 Out-of-Bounds Read via Boost.X3 Parser
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 23, 2026, 4:01 PM
Reserved
Nov 23, 2026, 2:20 PM
Status
Received
Published
Nov 23, 2026, 3:17 PM
Modified
Nov 23, 2026, 4:17 PM