CVE-2026-72854
published medium CVSS 4.0 · 5.8msgpack-c Integer Overflow in msgpack_unpacker_expand_buffer Causes a False-Success Undersized Reservation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| msgpack | — | msgpack-c0 through 7.0.1 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | libmsgpack-c2aarch64 | Advisory build | 7.0.2-160000.1.1 | SUSE-SU-2026:23630-1 |
| SUSE / openSUSE | SLE-16 | libmsgpack-c2ppc64le | Advisory build | 7.0.2-160000.1.1 | SUSE-SU-2026:23630-1 |
| SUSE / openSUSE | SLE-16 | libmsgpack-c2s390x | Advisory build | 7.0.2-160000.1.1 | SUSE-SU-2026:23630-1 |
| SUSE / openSUSE | SLE-16 | libmsgpack-c2x86_64 | Advisory build | 7.0.2-160000.1.1 | SUSE-SU-2026:23630-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libmsgpack-c2aarch64 | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | libmsgpack-c2ppc64le | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libmsgpack-c2s390x | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libmsgpack-c2x86_64 | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | msgpack-c-develaarch64 | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | msgpack-c-develppc64le | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | msgpack-c-devels390x | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | msgpack-c-develx86_64 | Advisory build | 7.0.2-160000.1.1 | OPENSUSE-SU-2026:21768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmsgpack-c2aarch64 | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmsgpack-c2ppc64le | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmsgpack-c2s390x | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libmsgpack-c2x86_64 | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | msgpack-c-develaarch64 | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | msgpack-c-develppc64le | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | msgpack-c-devels390x | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | msgpack-c-develx86_64 | Advisory build | 7.0.2-2.1 | OPENSUSE-SU-2026:11672-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| msgpack | msgpack-c | 0 through 7.0.1 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
2- CWE-190 Integer Overflow or Wraparound
- CWE-787 Out-of-bounds Write
References
6- https://github.com/msgpack/msgpack-c
- Shipped example demonstrating the reserve-then-write pattern https://github.com/msgpack/msgpack-c/blob/c-7.0.1/example/lib_buffer_unpack.c
- msgpack_unpacker_reserve_buffer capacity contract at c-7.0.1 https://github.com/msgpack/msgpack-c/blob/c-7.0.1/include/msgpack/unpack.h#L219-L223
- msgpack_unpacker_expand_buffer at c-7.0.1 https://github.com/msgpack/msgpack-c/blob/c-7.0.1/src/unpack.c#L429-L502
- GitHub Issue #1181 https://github.com/msgpack/msgpack-c/issues/1181
- VulnCheck Advisory: msgpack-c Integer Overflow in msgpack_unpacker_expand_buffer Causes a False-Success Undersized Reservation https://www.vulncheck.com/advisories/msgpack-c-integer-overflow-in-msgpack-unpacker-expand-buffer-causes-a-false-success-undersized-reservation
Provider assertions
2VulnCheck · cna
msgpack-c Integer Overflow in msgpack_unpacker_expand_buffer Causes a False-Success Undersized Reservation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2b74931d4d5674fadf4817acf3708bd7b2d0d521495d116b3efad7f3b1a54af6
- Ingested
- 30 Sep 2026, 15:32:47 UTC
- Source record
- Official CVE record