Skip to main content

msgpack-c CVE-2026-130065

| EUVDEUVD-2026-126728 MEDIUM
Out-of-bounds Write (CWE-787)
2026-11-16 VulnCheck GHSA-8pq6-mw7r-9f5g
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Feed attacker-influenced data to application using msgpack-c
  2. Delivery
    Trigger vrefbuffer migrate with unequal buffers
  3. Exploit
    Capacity checked against wrong (source) end pointer
  4. Execution
    Realloc skipped, memcpy writes iovec past array
  5. Impact
    Adjacent 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

msgpack-c 0 ≤7.0.2

Affected Packages

euvd msgpack_c no fix

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
widely-used C MessagePack serialization library, but vulnerable migrate path is niche
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy