Heap Buffer Overflow in Msgpack-c Affects Applications Using Version 7.0.2
CVE-2026-130065
5.8MEDIUM
What is CVE-2026-130065?
Msgpack-c versions up to 7.0.2 are susceptible to a heap buffer overflow vulnerability within the function msgpack_vrefbuffer_migrate(). This issue arises due to an improper capacity check against the end pointer of the source array. During the migration of vrefbuffers that are of unequal sizes, the critical realloc operation is bypassed. Consequently, the memcpy() function can write additional iovec entries past the bounds of the destination array, leading to potential corruption of adjacent memory on the heap. This vulnerability can cause unpredictable behavior, including application crashes.
Affected Version(s)
msgpack-c 0 <= 7.0.2
