CVE-2026-72854: msgpack-c Integer Overflow in msgpack_unpacker_expand_buffer Causes a False-Success Undersized Reservation
Vulnerability summary
CVE-2026-72854 is a medium (CVSS 5.8) Integer Overflow or Wraparound vulnerability in msgpack msgpack-c. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 4.8% of scored vulnerabilities.
Not severe (CVSS 5.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 20-08-2026PublishedVulnerability first disclosed.
- 24-09-2026Last modifiedVulnerability information updated.
Description
msgpack_unpacker_expand_buffer in src/unpack.c, reached through the public msgpack_unpacker_reserve_buffer API, computes its new buffer size using an unchecked size_t addition of the requested size and the amount already used. The doubling loop guards its own multiplication against overflow, but the addition in the loop condition is unguarded, so a request near SIZE_MAX wraps: the loop condition is already satisfied, the allocation is performed at the small pre-wrap size, and the function returns true. The caller is told the requested capacity was reserved when it was not, so a subsequent write of the requested length overflows the heap buffer. The library's own example/lib_buffer_unpack.c demonstrates the reserve-then-write pattern, and its defensive assert comparing capacity against the request is compiled out under NDEBUG. msgpack-c's own decode entry points do not derive the reservation size from untrusted input, so reaching this requires an integration that passes an attacker-influenced length to the reservation API, such as a length-prefixed streaming transport.
CVSS metrics
7 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.8MediumCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- NVDNIST5.8MediumCVSS: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
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
5%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.16% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse2 products
- msgpack-c&distro=openSUSE Leap 16.0< 7.0.2-160000.1.1
- msgpack-c&distro=openSUSE Tumbleweed< 7.0.2-2.1
Suse2 products
- msgpack-c&distro=SUSE Linux Enterprise Server 16.0< 7.0.2-160000.1.1
- msgpack-c&distro=SUSE Linux Enterprise Server for SAP applications 16.0< 7.0.2-160000.1.1
Debian1 product
- msgpack-cAll versions (No fix recorded) | < 7.0.2-1
Mageia1 product
- msgpack< 6.1.0-2.1.mga10
Msgpack1 product
- msgpack-c≤ 7.0.1
Ubuntu1 product
- msgpack-cAll versions (No fix recorded)
6 vendors · 8 products
References
15 links- github.com/msgpack/msgpack-c/issues/1181Issue Tracking
- github.com/msgpack/msgpack-c/blob/c-7.0.1/src/unpack.cTechnical Description
- github.com/msgpack/msgpack-c/blob/c-7.0.1/include/msgpack/unpack.hTechnical Description
- github.com/msgpack/msgpack-c/blob/c-7.0.1/example/lib_buffer_unpack.cTechnical Description
- github.com/msgpack/msgpack-cProduct
- www.vulncheck.com/advisories/…Third Party Advisory