# CVE-2026-130065: msgpack-c through 7.0.2 Heap Buffer Overflow via msgpack_vrefbuffer_migrate

- Severity: Medium 5.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-11-16T22:00:09.221Z
- Modified: 2026-11-17T17:18:03.300Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- msgpack msgpack-c: up to 7.0.2

## Every score

- VulnCheck: CVSS:4.0 5.8 Medium `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`

## References

- <https://github.com/msgpack/msgpack-c/issues/1197> (issue-tracking)
- <https://github.com/msgpack/msgpack-c/blob/c-7.0.2/src/vrefbuffer.c#L177-L224> (technical-description)
- <https://github.com/msgpack/msgpack-c/commit/1c47ce020a019a3d4246e6394176779ecdf9d502> (patch)
- <https://www.vulncheck.com/advisories/msgpack-c-through-7.0.2-heap-buffer-overflow-via-msgpack-vrefbuffer-migrate> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-130065](https://www.cve.org/CVERecord?id=CVE-2026-130065), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-130065](https://nvd.nist.gov/vuln/detail/CVE-2026-130065), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-130065 · Whole record: https://cve.day/CVE-2026-130065.json · Rebuilt by cve.day 2026-11-25T22:59:50.935Z
