
CVE catalog
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 an
- Severity
- Medium · CVSS 5.8
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
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.16% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | msgpack-c | sid | 7.0.2-1 | fixed |
| Debian | msgpack-c | forky | 7.0.2-1 | fixed |
| Debian | msgpack-c | trixie | 6.0.1-3 | vulnerable |
| Debian | msgpack-c | bookworm | 4.0.0-3 | vulnerable |
| Suse | msgpack-c | linux enterprise server 16.0 | 7.0.2-160000.1.1 | fixed |
| Suse | msgpack-c | linux enterprise server for sap applications 16.0 | 7.0.2-160000.1.1 | fixed |
| Opensuse | msgpack-c | leap 16.0 | 7.0.2-160000.1.1 | fixed |
| Opensuse | msgpack-c | tumbleweed | 7.0.2-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | msgpack-c | source | sid | 7.0.2-1 | not yet assigned | Not reported | [1150652] |
| Debian | msgpack-c | source | forky | 7.0.2-1 | not yet assigned | Not reported | [1150652] |
| Debian | msgpack-c | source | trixie | (unfixed) | not yet assigned | Not reported | [1150652] |
| Debian | msgpack-c | source | bookworm | (unfixed) | not yet assigned | Not reported | [1150652] |
| Suse | msgpack-c | rpm | linux enterprise server 16.0 | 7.0.2-160000.1.1 | Not reported | SUSE-SU-2026:23630-1 | Not reported |
| Suse | msgpack-c | rpm | linux enterprise server for sap applications 16.0 | 7.0.2-160000.1.1 | Not reported | SUSE-SU-2026:23630-1 | Not reported |
| Opensuse | msgpack-c | rpm | leap 16.0 | 7.0.2-160000.1.1 | Not reported | OPENSUSE-SU-2026:21768-1 | Not reported |
| Opensuse | msgpack-c | rpm | tumbleweed | 7.0.2-2.1 | Not reported | OPENSUSE-SU-2026:11672-1 | Not reported |
Notes
[trixie] msgpack-c: Minor issue [bookworm] msgpack-c: Minor issue, revisit when fixed upstream
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libmsgpackc2]Affected
Source package: [msgpack-c]
Details (2)
4.0.0-3· amd64 · bookwormAffected
nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12
4.0.0-3· arm64 · bookwormAffected
nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12
- [libmsgpack-dev]Affected
Source package: [msgpack-c]
Details (2)
4.0.0-3· amd64 · bookwormAffected
nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12
4.0.0-3· arm64 · bookwormAffected
nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12
- [libmsgpack-doc]Affected
Source package: [msgpack-c]
Details (2)
4.0.0-3· all · bookwormAffected
nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12
4.0.0-3· all · bookwormAffected
nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12
[Debian 13 (Trixie)]
- [libmsgpack-c2]Affected
Source package: [msgpack-c]
Details (2)
6.0.1-3+b1· amd64 · trixieAffected
nvd · msgpack-c · debian · 13
6.0.1-3+b1· arm64 · trixieAffected
nvd · msgpack-c · debian · 13
- [libmsgpack-c-dev]Affected
Source package: [msgpack-c]
Details (2)
6.0.1-3+b1· amd64 · trixieAffected
nvd · msgpack-c · debian · 13
6.0.1-3+b1· arm64 · trixieAffected
nvd · msgpack-c · debian · 13
- [libmsgpack-c-doc]Affected
Source package: [msgpack-c]
Details (2)
6.0.1-3· all · trixieAffected
nvd · msgpack-c · debian · 13
6.0.1-3· all · trixieAffected
nvd · msgpack-c · debian · 13
- [libmsgpack-dev]Affected
Source package: [msgpack-c]
Details (2)
6.0.1-3· all · trixieAffected
nvd · msgpack-c · debian · 13
6.0.1-3· all · trixieAffected
nvd · msgpack-c · debian · 13
[openSUSE Tumbleweed]
- [libmsgpack-c2]Unknown
Source package: [msgpack-c]
Details (1)
7.0.2-1.1· x86_64 · tumbleweedUnknown · Fixed:
7.0.2-2.1Version impact unknown
nvd · msgpack-c · opensuse · tumbleweed
- [msgpack-c-devel]Unknown
Source package: [msgpack-c]
Details (1)
7.0.2-1.1· x86_64 · tumbleweedUnknown · Fixed:
7.0.2-2.1Version impact unknown
nvd · msgpack-c · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11672-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-72854]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-72854]
- [https://osv.dev/vulnerability/SUSE-SU-2026:23630-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11672-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:21768-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-72854]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72854.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]