Skip to main content
Public proof of conceptFix available

CVE-2026-72854

A public proof of concept exists; no exploitation attested.

  • Published2026-08-20
  • WeaknessCWE-190 · CWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-08-2019:17CVE publishedNVD

Versions per branch

Products declared by the CNA1 product

As VulnCheck, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-09-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • msgpackMageia:10all versions · fixed in 6.1.0-2.1.mga10
  • msgpackAzure Linux:3all versions · no fixed version listedand 2 other packages
  • msgpack-cUbuntu:26.10all versions · no fixed version listed
  • msgpack-cUbuntu:26.04:LTSall versions · no fixed version listed
  • msgpack-cUbuntu:24.04:LTSall versions · no fixed version listed
  • msgpack-cUbuntu:22.04:LTSall versions · no fixed version listed
  • msgpack-cUbuntu:20.04:LTSall versions · no fixed version listed
  • msgpack-cUbuntu:18.04:LTSall versions · no fixed version listed

8 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-72854 Red Hat Product Security

    msgpack-c: msgpack-c: Heap buffer overflow via integer overflow in buffer expansion.

Full record on NVD

Fix

No fix published by the sources we read yet. NVD record

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
CVSS 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/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
Published
2026-08-20
Last modified
2026-10-18
NVD status
Deferred
GitHub advisory
GHSA-p5jw-mm77-f8jp

Frequently asked questions

What is CVE-2026-72854?

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.

Is CVE-2026-72854 actively exploited?

A proof-of-concept exploit exists for CVE-2026-72854, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-72854?

CVE-2026-72854 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L.

Running msgpack-c? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record