Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessFeed attacker-influenced data to application using msgpack-c
-
DeliveryTrigger vrefbuffer migrate with unequal buffers
-
ExploitCapacity checked against wrong (source) end pointer
-
ExecutionRealloc skipped, memcpy writes iovec past array
-
ImpactAdjacent heap corruption or application crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the host application actually invoke msgpack_vrefbuffer_migrate() to merge two vrefbuffers whose iovec arrays differ in capacity, with an attacker able to influence how many references (iovec entries) are appended so that the incoming count exceeds the destination's remaining room. The faulty capacity check only skips the necessary realloc when the destination buffer's iovec array sits higher in memory than the source's end pointer (demonstrated in the regression test by the relative addresses of the two arrays), so success also depends on heap layout the attacker does not directly control. Limiting factors: local/data-dependent vector (not inherently network-remote), high attack complexity due to the non-deterministic heap-placement requirement, dependence on the application exercising this specific API, and affected versions up to and including msgpack-c 7.0.2. |
| Impact | Signals point to a moderate, not urgent, priority. The CVSS 4.0 base is 5.8 (medium) with vector AV:L/AC:H/AT:P/PR:N/UI:P: exploitation is local rather than network-facing, carries high attack complexity, and depends on an attack requirement (AT:P) - here the uncontrolled relative heap placement of the two iovec arrays - plus application-side interaction (UI:P). Impact is integrity-focused (VI:H, heap corruption via out-of-bounds write / CWE-787) with only low availability impact (VA:L, crash) and no confidentiality exposure (VC:N). No CISA KEV listing and no EPSS score are provided, and no public exploit is identified; the vuln.today Decision label is 'this_month', consistent with a patch-on-normal-cycle item rather than act_now/emergency. The nominal PR:N ('no privileges') should not be read as trivially remote: realistically the host application must call msgpack_vrefbuffer_migrate() on attacker-influenced buffers and the heap layout must line up, so reliable exploitation is constrained. Net: a genuine memory-corruption bug worth scheduled patching, but the local vector, high complexity, and layout dependence keep real-world risk well below the KEV/high-EPSS tier. |
| Exploit ScenarioDerived | An attacker who can influence the number and content of buffered references an application accumulates through msgpack-c's vrefbuffer API causes the application to merge two vrefbuffers of unequal capacity via msgpack_vrefbuffer_migrate(); because the capacity check compared against the source buffer's end pointer instead of the destination's, the realloc is skipped and memcpy() writes iovec entries past the destination array, corrupting adjacent heap memory and crashing the process (potentially leading to further memory-corruption exploitation). High attack complexity applies because success depends on the two iovec arrays' relative placement in memory, which the attacker does not directly control. No confirmed public exploit exists; the fix commit includes a regression test that deterministically reproduces the overflow condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Heap buffer overflow in msgpack-c through 7.0.2 can write iovec entries past the destination vrefbuffer array when an application calls msgpack_vrefbuffer_migrate() to merge buffers of unequal capacity. Exploitation is local and high complexity, dependent on the host application exercising this API and on heap layout that places the destination array higher in memory; the assessed impact is integrity corruption with low availability impact. Signals point to a moderate, not urgent, priority, with no active exploitation confirmed in the provided intelligence and no public exploit identified at time of analysis.
RemediationAI
Apply the upstream fix in commit https://github.com/msgpack/msgpack-c/commit/1c47ce020a019a3d4246e6394176779ecdf9d502, which corrects the capacity check to nused > (size_t)(to->end - to->tail), or use the vendor-provided patch; upstream fix available (commit); released patched version not independently confirmed. Track https://github.com/msgpack/msgpack-c/issues/1197 and the VulnCheck advisory at https://www.vulncheck.com/advisories/msgpack-c-through-7.0.2-heap-buffer-overflow-via-msgpack-vrefbuffer-migrate for update guidance. No specific workaround is documented in the available sources; the upstream commit is the complete fix identified for this issue.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-787 out-of-bounds write in msgpack-c's vrefbuffer iovec management code. msgpack_vrefbuffer_migrate() moves iovec entries from a source vrefbuffer to a destination vrefbuffer, but the vulnerable condition compared to->tail + nused against vbuf->end, the source buffer's end pointer, instead of checking the destination's remaining capacity. When the destination had less room than the incoming count, the realloc was skipped and memcpy() wrote iovec entries beyond to->array, corrupting adjacent heap memory or crashing the process. The upstream fix changes the check to nused > (size_t)(to->end - to->tail), and the commit adds a regression test that exercises migration into a destination whose iovec array sits higher in memory. The affected CPE is cpe:2.3:a:msgpack:msgpack-c:*:*:*:*:*:*:*:*, covering msgpack-c through 7.0.2. The supplied assessment characterizes exploitation as local and high complexity because success depends on the application invoking this specific migrate API and on non-deterministic heap placement.
Know when Msgpack C gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Trigger depends on uncontrolled relative heap placement (AC:H) and on the app invoking migrate on attacker-influenced buffers (AV:L/UI:R); heap corruption gives I:H, crash A:L, no disclosure C:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Use-after-free in msgpack-c's optional Boost.X3 parser affects C++ releases cpp-3.0.0 through cpp-9.0.0 when built with
An out-of-bounds heap read exists in the msgpack-c C++ library (cpp-3.0.0 through cpp-9.0.0) when it is compiled with th
Heap buffer overflow in msgpack-c through version 7.0.1 results from an integer overflow in msgpack_unpacker_expand_buff
EUVD-2026-126728
GHSA-8pq6-mw7r-9f5g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB