Skip to main content

msgpack-c CVE-2026-135168

| EUVDEUVD-2026-133070 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-23 VulnCheck GHSA-wjg6-9v9q-98vh
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted msgpack str/bin/ext over network
  2. Exploit
    Value unpacked from non-contiguous container (std::deque)
  3. Execution
    x3_parse.hpp assumes contiguous storage, memcpy reads past block
  4. Impact
    Disclose adjacent heap memory to attacker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires msgpack-c to be compiled with the non-default MSGPACK_USE_X3_PARSE option, which selects the Boost.Spirit X3 parser in x3_parse.hpp, AND the consuming application must unpack msgpack input from a non-contiguous container such as std::deque; the attacker must then supply a str, bin, or ext value whose storage spans multiple blocks so that the parser's contiguity assumption triggers a memcpy past a storage block. Limiting factors: the X3 parse path is not enabled in default builds, so stock deployments are not affected; applications using contiguous buffers are also not affected. Per the CVSS vector exploitation is unauthenticated (PR:N) and needs no user interaction (UI:N), but AC:H and AT:P reflect the specific build-and-usage preconditions above.

Impact

This is a medium-severity information-disclosure flaw (CVSS 4.0 base 6.3) whose real-world risk is sharply constrained by its preconditions. The CVSS vector reports AV:N/PR:N/UI:N (reachable by remote unauthenticated attackers) but also AC:H/AT:P, signalling meaningful barriers, and impact is limited to VC:L plus VA:L (partial heap-memory disclosure and possible crash) with no integrity impact. The decisive limiter is that the bug only exists when msgpack-c is compiled with the non-default MSGPACK_USE_X3_PARSE option and the application unpacks data from a non-contiguous container (e.g. std::deque); stock builds are unaffected, so the exposed population is far smaller than the broad cpp-3.0.0-through-cpp-9.0.0 version range suggests. Signals are incomplete: no EPSS score is provided, there is no CISA KEV listing, and no confirmed working exploit code - only a GitHub issue and a VulnCheck advisory. The vuln.today decision label is this_month, consistent with a real but non-emergency bug. Net: a legitimate issue to patch on a routine cycle for the narrow set of deployments using the X3 parser, not a widespread critical threat; the absence of EPSS data means widescale exploitation probability cannot be quantified from the input and should be verified independently.

Exploit ScenarioDerived

An application that links msgpack-c built with MSGPACK_USE_X3_PARSE deserializes attacker-controlled msgpack into a non-contiguous buffer such as std::deque. The attacker submits a str, bin, or ext value whose encoded length causes the X3 parser to memcpy past a storage block, reading and returning adjacent heap memory. No confirmed working exploit code is identified; a GitHub issue (#1224) and a VulnCheck advisory describe the defect.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 23, 2026

An out-of-bounds heap read exists in the msgpack-c C++ library (cpp-3.0.0 through cpp-9.0.0) when it is compiled with the non-default MSGPACK_USE_X3_PARSE option, which selects the Boost.Spirit X3 parsing path in x3_parse.hpp. The parser assumed contiguous input storage, so when an application unpacks a str, bin or ext value from a non-contiguous container such as std::deque, a memcpy can run past the end of a storage block and disclose adjacent heap memory. Per the CVSS 4.0 vector (6.3) the flaw is unauthenticated and needs no user interaction, but AC:H and AT:P reflect the build-and-usage preconditions; default builds do not enable the X3 parse path, no public exploit code was identified in the supplied intelligence, and the priority decision is this_month. The references point to an upstream GitHub issue rather than to a released patched version.

RemediationAI

No vendor-released patch version is identified in the available data; the upstream issue at https://github.com/msgpack/msgpack-c/issues/1224 and the VulnCheck advisory at https://www.vulncheck.com/advisories/msgpack-c-cpp-3.0.0-through-cpp-9.0.0-out-of-bounds-read-via-boost-x3-parser should be monitored for a fixed release before upgrading. Because the vulnerable code is only compiled in when MSGPACK_USE_X3_PARSE is defined, the most direct mitigation is to remove that define and build msgpack-c with default options, which excludes the Boost.Spirit X3 parser entirely; the trade-off is loss of the X3 parse path for any code that depends on it. Independently, ensure that unpacking is performed against contiguous storage, such as std::vector or std::string, rather than non-contiguous containers like std::deque; the trade-off is that applications built around segmented containers need to copy incoming data into a contiguous buffer first, which adds memory overhead and a copy step. Where neither change is immediately possible, treat untrusted MessagePack input reaching the X3 path as unsafe and avoid accepting such input until a patched msgpack-c version is available.

Affected VersionsENISA

msgpack-c 3.0.0 ≤9.0.0

Affected Packages

euvd msgpack_c no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

msgpack-c is a C++ implementation of the MessagePack binary serialization format. Its object-creation layer (see create_object_visitor.hpp) and the Boost.Spirit X3 based parser in x3_parse.hpp handle MessagePack str, bin and ext types, whose payloads are length-prefixed byte sequences. The X3 parse path, compiled in only when MSGPACK_USE_X3_PARSE is defined, treated those payloads as a single contiguous region and performed a memcpy of the declared length from the input's current position. Because the parser operates on iterators supplied by the caller, an application that unpacks from a non-contiguous container like std::deque can present a value whose bytes span multiple internal blocks; the copy then reads past the end of the current block and beyond the allocation. This is CWE-125 (out-of-bounds read), and per the assessed CVSS 3.1 vector the impact is limited to confidentiality and a degree of availability (C:L/A:L), with no integrity impact. Neither the upstream references nor the advisory state a length-validation or bounds-check fix at the time of analysis; the linked source locations identify where the contiguity assumption is made.

Know when Msgpack C gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 4.8 MEDIUM

Remote attacker-supplied msgpack (AV:N, PR:N, UI:N); non-default X3 build plus non-contiguous container makes AC:H; out-of-bounds read leaks limited heap memory (C:L) and may crash (A:L), no integrity impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular C++ serialization library, but vulnerable X3 parser is a non-default build option
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy