{"id":"CVE-2026-130065","kind":"vulnerability","aliases":["CVE-2026-130065"],"related":[],"title":"msgpack-c: heap buffer overflow in vrefbuffer migration corrupts memory","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.","summary":"msgpack-c through 7.0.2 has a heap buffer overflow in msgpack_vrefbuffer_migrate() when migrating between vrefbuffers of unequal size. Writes past the destination array can corrupt adjacent heap memory or crash the application.","severity":"medium","cvss":5.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["c","c++","msgpack-c","package"],"not_affected_if":["other-msgpack-implementation","patched-version"],"how_to_check":"- Check the installed msgpack-c version against the fixed version in the product ranges (unknown if not stated in the sources)\n- Look for applications that link msgpack-c and use vrefbuffer migration (unknown if the sources do not say which code paths call it)","fix":null,"status":"open","published_at":"2026-11-16T22:18:21+00:00","first_seen_at":"2026-11-16T22:39:13+00:00","triaged_at":"2026-11-16T22:41:03+00:00","updated_at":"2026-11-16T22:41:03+00:00","category":"package","confidence":0.5,"triage":{"at":"2026-11-16T22:41:03Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"unknown","title":"msgpack-c: heap buffer overflow in vrefbuffer migration corrupts memory","impact":"medium","summary":"msgpack-c through 7.0.2 has a heap buffer overflow in msgpack_vrefbuffer_migrate() when migrating between vrefbuffers of unequal size. Writes past the destination array can corrupt adjacent heap memory or crash the application.","audience":"developers","category":"package","nicknames":[],"who_cares":["msgpack-c","c","c++"],"confidence":0.5,"fix_status":"available","needs_auth":"unknown","worst_case":"heap memory corrupted or application crashes","analyst_note":"Confirm fixed version from the GitHub patch and the vulncheck advisory, and whether untrusted input reaches vrefbuffer migration.","how_to_check":"- Check the installed msgpack-c version against the fixed version in the product ranges (unknown if not stated in the sources)\n- Look for applications that link msgpack-c and use vrefbuffer migration (unknown if the sources do not say which code paths call it)","plain_action":"","product_name":"msgpack-c","needs_analyst":true,"not_affected_if":["other-msgpack-implementation","patched-version"],"who_is_affected":"Applications that link msgpack-c through 7.0.2 and use its vrefbuffer migration path, where msgpack_vrefbuffer_migrate() moves data between buffers of unequal size. Systems that use other msgpack implementations or versions past the fix can skip it. The sources do not say which default configurations reach this code path.","user_interaction":"unknown","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000767,"input_tokens":4640,"output_tokens":606,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-130065':14A,17A '-2026':13A,16A '7.0.2':28B,63C 'adjac':52B,107C 'applic':58B,113C 'array':49B,82C,105C 'buffer':5A,32B,67C 'c':3A,18B,19B,22B,26B,61C 'capac':78C 'check':77C 'contain':64C 'corrupt':10A,51B,106C 'crash':56B,111C 'cve':12A,15A 'destin':48B,104C 'end':84C 'entri':101C 'heap':4A,31B,53B,66C,108C 'iovec':100C 'memcpi':98C 'memori':11A,54B,109C 'migrat':9A,37B,39B,73C,87C 'msgpack':2A,21B,25B,35B,60C,71C 'msgpack-c':1A,20B,24B,59C 'overflow':6A,33B,68C 'packag':23B 'past':46B,102C 'pointer':85C 'realloc':94C 'size':44B,92C 'skip':96C 'sourc':81C 'src/vrefbuffer.c':75C 'unequ':43B,91C 'vrefbuff':8A,36B,41B,72C,89C 'vulner':69C 'write':45B,99C","nicknames":[],"mitigations":[],"who_affected":"Applications that link msgpack-c through 7.0.2 and use its vrefbuffer migration path, where msgpack_vrefbuffer_migrate() moves data between buffers of unequal size. Systems that use other msgpack implementations or versions past the fix can skip it. The sources do not say which default configurations reach this code path.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["c","medium","msgpackc","package"],"campaign_type":null,"search_a":"'-130065':14A,17A '-2026':13A,16A 'buffer':5A 'c':3A 'corrupt':10A 'cve':12A,15A 'heap':4A 'memori':11A 'migrat':9A 'msgpack':2A 'msgpack-c':1A 'overflow':6A 'vrefbuff':8A","search_b":"'7.0.2':28B 'adjac':52B 'applic':58B 'array':49B 'buffer':32B 'c':18B,19B,22B,26B 'corrupt':51B 'crash':56B 'destin':48B 'heap':31B,53B 'memori':54B 'migrat':37B,39B 'msgpack':21B,25B,35B 'msgpack-c':20B,24B 'overflow':33B 'packag':23B 'past':46B 'size':44B 'unequ':43B 'vrefbuff':36B,41B 'write':45B","search_c":"'7.0.2':63C 'adjac':107C 'applic':113C 'array':82C,105C 'buffer':67C 'c':61C 'capac':78C 'check':77C 'contain':64C 'corrupt':106C 'crash':111C 'destin':104C 'end':84C 'entri':101C 'heap':66C,108C 'iovec':100C 'memcpi':98C 'memori':109C 'migrat':73C,87C 'msgpack':60C,71C 'msgpack-c':59C 'overflow':68C 'past':102C 'pointer':85C 'realloc':94C 'size':92C 'skip':96C 'sourc':81C 'src/vrefbuffer.c':75C 'unequ':91C 'vrefbuff':72C,89C 'vulner':69C 'write':99C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T22:18:21+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-130065","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130065","severity":null,"published_at":"2026-11-16T22:18:21+00:00","modified_at":"2026-11-16T22:18:21+00:00","first_seen_at":"2026-11-16T22:39:13+00:00","fetched_at":"2026-11-16T22:39:13+00:00","note":null}],"documents":[{"id":172871,"url":"https://github.com/msgpack/msgpack-c/commit/1c47ce020a019a3d4246e6394176779ecdf9d502","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172872,"url":"https://www.vulncheck.com/advisories/msgpack-c-through-7.0.2-heap-buffer-overflow-via-msgpack-vrefbuffer-migrate","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}