CVE-2026-135169
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 …
Impact
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.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data being read, high risk of outages.
Affected products (Msgpack)
| Product | Affected versions |
|---|---|
| Msgpack-c | from 3.0.0 through 9.0.0 Version 3.0.0 ≤9.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- 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
- https://github.com/advisories/GHSA-3q98-c9fg-wc7m
- https://nvd.nist.gov/vuln/detail/CVE-2026-135169