{"id":"CVE-2026-130065","state":"PUBLISHED","title":"msgpack-c through 7.0.2 Heap Buffer Overflow via msgpack_vrefbuffer_migrate","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.","publishedAt":"2026-11-16T22:00:09.221Z","updatedAt":"2026-11-16T22:00:09.221Z","severity":{"score":5.8,"label":"Medium","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["msgpack msgpack-c"],"affected":[{"vendor":"msgpack","product":"msgpack-c","packageURL":"pkg:github/msgpack/msgpack-c","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"7.0.2","versionType":"custom"}],"repo":"https://github.com/msgpack/msgpack-c"}],"references":["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"],"weaknesses":["CWE-787"],"ingestedAt":"2026-11-16T22:06:06.099Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/130xxx/CVE-2026-130065.json","commit":"23428835574f3106b5d0b60e13055c2d686ef001","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-130065","state":"PUBLISHED","datePublished":"2026-11-16T22:00:09.221Z","dateUpdated":"2026-11-16T22:00:09.221Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-16T20:35:53.108Z"},"containers":{"cna":{"title":"msgpack-c through 7.0.2 Heap Buffer Overflow via msgpack_vrefbuffer_migrate","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"msgpack","product":"msgpack-c","packageURL":"pkg:github/msgpack/msgpack-c","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"7.0.2","versionType":"custom"}],"repo":"https://github.com/msgpack/msgpack-c"}],"references":[{"url":"https://github.com/msgpack/msgpack-c/issues/1197","tags":["issue-tracking"]},{"url":"https://github.com/msgpack/msgpack-c/blob/c-7.0.2/src/vrefbuffer.c#L177-L224","tags":["technical-description"]},{"url":"https://github.com/msgpack/msgpack-c/commit/1c47ce020a019a3d4246e6394176779ecdf9d502","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/msgpack-c-through-7.0.2-heap-buffer-overflow-via-msgpack-vrefbuffer-migrate","name":"VulnCheck Advisory: msgpack-c through 7.0.2 Heap Buffer Overflow via msgpack_vrefbuffer_migrate","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-16T22:00:09.221Z"},"datePublic":"2026-10-28T00:00:00.000Z","credits":[{"lang":"en","value":"AmirWilayah (ADGepuk)","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}