msgpack-c freed memory read in Boost.X3 parser
Only affects msgpack-c cpp-3.0.0 through cpp-9.0.0 built with the non-default MSGPACK_USE_X3_PARSE CMake option and unpacking in reference mode over a buffering or reallocating iterator.
- Exploited
- No known exploitation
- Fix
- No fix listed
- Who is exposed
- Specific setups only
Summary
The msgpack-c C++ library has a use-after-free bug in its Boost.X3 parser. A remote attacker, without logging in, can send crafted msgpack input that makes the library read freed heap memory or crash the process.
Written by a model
Original description
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.
Who should check
Teams running msgpack-c cpp-3.0.0 through cpp-9.0.0 built with MSGPACK_USE_X3_PARSE that unpack in reference mode from multi_pass or other buffering iterators
“Affecting msgpack-c >= 3.0.0, <= 9.0.0”
What to do
Check whether your setup matches what the bug needs.
Built with MSGPACK_USE_X3_PARSE, a non-default CMake option Unpacking in reference mode, with an explicit reference function that returns true Input is parsed over a buffering or reallocating iterator, such as boost::spirit::multi_pass Affected versions are cpp-3.0.0 through cpp-9.0.0Workaround: Removing any one of the required conditions avoids the bug, so do not build with MSGPACK_USE_X3_PARSE, or do not unpack in reference mode with a reference function that returns true over buffering or reallocating iterators.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-135169 (msgpack-c cpp-3.0.0 through cpp-9.0.0 Use-After-Free via Boost.X3 Parser), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-135169 (entry last updated 2026-11-24):
Affected:
- msgpack msgpack-c: from 3.0.0, through 9.0.0
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Built with MSGPACK_USE_X3_PARSE, a non-default CMake option (source: https://github.com/msgpack/msgpack-c/issues/1225)
- Unpacking in reference mode, with an explicit reference function that returns true (source: https://github.com/msgpack/msgpack-c/issues/1225)
- Input is parsed over a buffering or reallocating iterator, such as boost::spirit::multi_pass (source: https://github.com/msgpack/msgpack-c/issues/1225)
- Affected versions are cpp-3.0.0 through cpp-9.0.0 (source: https://www.vulncheck.com/advisories/msgpack-c-cpp-3.0.0-through-cpp-9.0.0-use-after-free-via-boost-x3-parser)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-135169 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-135169 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/msgpack/msgpack-c/issues/1225
- https://github.com/msgpack/msgpack-c/blob/cpp-9.0.0/include/msgpack/v2/x3_parse.hpp#L344
- https://github.com/msgpack/msgpack-c/blob/cpp-9.0.0/include/msgpack/v2/create_object_visitor.hpp#L117
- https://www.vulncheck.com/advisories/msgpack-c-cpp-3.0.0-through-cpp-9.0.0-use-after-free-via-boost-x3-parser
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-135169
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-135169"}.Affected versions
- msgpack msgpack-cFrom 3.0.0 · through 9.0.0
cve.now Index
- Exploitation0/40No signal
- Exposure12/25Specific setups only, reachable over the network without a login
- Reach?/20Unknown. No tracked technology or package matched
- Severity8.3/10CVSS 8.3
- No patch5/5No patch listed yet
What would change the score
- Would score about 75 if added to CISA KEV
- Would score about 70 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now1 day
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-135169 |
| Record | NVD · CVE-2026-135169 |
| Other links 4 | |
| Report | GitHub · msgpack/msgpack-c · Issue #1225 |
| Repository | GitHub · msgpack/msgpack-c · include/msgpack/v2/x3_parse.hpp · L344 |
| Repository | GitHub · msgpack/msgpack-c · include/msgpack/v2/create_object_visitor.hpp · L117 |
| Link | vulncheck.com · advisories/msgpack-c-cpp-3.0.0-through-cpp-9.0.0-use-after-free-via-boost-x3-parser |
Questions about CVE-2026-135169
Is CVE-2026-135169 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Decoded str, bin and ext values can point at freed heap memory, so reading them can disclose freed heap contents or crash the process.
Source: github.com, vulncheck.com
Which versions are affected by CVE-2026-135169?
msgpack-c: from 3.0.0 through 9.0.0.
Source: cve.now feed data
Am I affected, and how do I check?
Affected versions are msgpack-c cpp-3.0.0 through cpp-9.0.0, and only when the library is built with the non-default MSGPACK_USE_X3_PARSE CMake option and input is unpacked in reference mode with a reference function that returns true over a buffering or reallocating iterator such as boost::spirit::multi_pass. Check the version in use and whether that CMake option was set at build time.
Source: github.com, vulncheck.com
How do I fix CVE-2026-135169?
The checked facts do not name a fixed version or vendor patch ids, so no upgrade target can be stated here; check the msgpack-c advisory for a fix.
Source: github.com, vulncheck.com
What if there's no patch?
Removing any one of the required conditions avoids the bug, so do not build with MSGPACK_USE_X3_PARSE, or do not unpack in reference mode with a reference function that returns true over buffering or reallocating iterators.
Source: github.com, vulncheck.com
Related
- CVE-2026-21452MessagePack-Java Vulnerable to Remote Denial of Service via Malicious .msgpack Model File Triggering Unbounded EXT Payload Allocation
- CVE-2026-135168msgpack-c cpp-3.0.0 through cpp-9.0.0 Out-of-Bounds Read via Boost.X3 Parser
- CVE-2026-130065msgpack-c through 7.0.2 Heap Buffer Overflow via msgpack_vrefbuffer_migrate
- CVE-2026-72854msgpack-c Integer Overflow in msgpack_unpacker_expand_buffer Causes a False-Success Undersized Reservation
- CVE-2026-126366msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte message forces multi-GiB OOM
- CVE-2026-114613MessagePack: Unbounded memory leak in msgpack C extension on strict_map_key validation failure
No corrections so far. Something wrong on this page? Report an error.