Out-of-Bounds Heap Read in msgpack-c C++ Library Affecting Various Versions
CVE-2026-135168
6.3MEDIUM
What is CVE-2026-135168?
The msgpack-c C++ library, from version cpp-3.0.0 through cpp-9.0.0, has a vulnerability caused by an out-of-bounds heap read when built with the MSGPACK_USE_X3_PARSE option. This occurs due to an assumption of contiguous input within the x3_parse.hpp file. Attackers can exploit this flaw by providing msgpack string, binary, or extension values unpacked from non-contiguous containers, such as std::deque. This leads to the possibility of memory corruption through memcpy operations that extend beyond allocated storage blocks, enabling the disclosure of adjacent heap memory.
Affected Version(s)
msgpack-c 3.0.0 <= 9.0.0
