CVE-2026-130065
msgpack-c through 7.0.2 contains a heap buffer overflow vulnerability in msgpack_vrefbuffer_migrate() in src/vrefbuffer.c that checks capacity against the sour…
Impact
msgpack-c through 7.0.2 contains a heap buffer overflow vulnerability in msgpack_vrefbuffer_migrate() in src/vrefbuffer.c that checks capacity against the source array's end pointer. When migrating between vrefbuffers of unequal size, the realloc is skipped and memcpy() writes iovec entries past the destination array, corrupting adjacent heap memory or crashing the application.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data or systems being changed, low risk of outages.
Affected products · Msgpack
| Product | Affected versions |
|---|---|
| Msgpack-c | through 7.0.2 Version 0 ≤7.0.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/msgpack/msgpack-c/issues/1197
- https://github.com/msgpack/msgpack-c/blob/c-7.0.2/src/vrefbuffer.c#L177-L224
- https://github.com/msgpack/msgpack-c/commit/1c47ce020a019a3d4246e6394176779ecdf9d502
- https://www.vulncheck.com/advisories/msgpack-c-through-7.0.2-heap-buffer-overflow-via-msgpack-vrefbuffer-migrate
- https://github.com/advisories/GHSA-8pq6-mw7r-9f5g
- https://nvd.nist.gov/vuln/detail/CVE-2026-130065