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

[CVE catalog]

Severity
Medium · CVSS 5.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debianmsgpack-csid7.0.2-1fixed
Debianmsgpack-cforky7.0.2-1fixed
Debianmsgpack-ctrixie6.0.1-3vulnerable
Debianmsgpack-cbookworm4.0.0-3vulnerable
Susemsgpack-clinux enterprise server 16.07.0.2-160000.1.1fixed
Susemsgpack-clinux enterprise server for sap applications 16.07.0.2-160000.1.1fixed
Opensusemsgpack-cleap 16.07.0.2-160000.1.1fixed
Opensusemsgpack-ctumbleweed7.0.2-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianmsgpack-csourcesid7.0.2-1not yet assignedNot reported[1150652]
Debianmsgpack-csourceforky7.0.2-1not yet assignedNot reported[1150652]
Debianmsgpack-csourcetrixie(unfixed)not yet assignedNot reported[1150652]
Debianmsgpack-csourcebookworm(unfixed)not yet assignedNot reported[1150652]
Susemsgpack-crpmlinux enterprise server 16.07.0.2-160000.1.1Not reportedSUSE-SU-2026:23630-1Not reported
Susemsgpack-crpmlinux enterprise server for sap applications 16.07.0.2-160000.1.1Not reportedSUSE-SU-2026:23630-1Not reported
Opensusemsgpack-crpmleap 16.07.0.2-160000.1.1Not reportedOPENSUSE-SU-2026:21768-1Not reported
Opensusemsgpack-crpmtumbleweed7.0.2-2.1Not reportedOPENSUSE-SU-2026:11672-1Not reported

[Debian bug #1150652]

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 · bookworm

      Affected

      nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12

    • 4.0.0-3 · arm64 · bookworm

      Affected

      nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12

  • [libmsgpack-dev]Affected

    Source package: [msgpack-c]

    Details (2)
    • 4.0.0-3 · amd64 · bookworm

      Affected

      nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12

    • 4.0.0-3 · arm64 · bookworm

      Affected

      nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12

  • [libmsgpack-doc]Affected

    Source package: [msgpack-c]

    Details (2)
    • 4.0.0-3 · all · bookworm

      Affected

      nvd · msgpack-c · debian · bookworm; nvd · msgpack-c · debian · 12

    • 4.0.0-3 · all · bookworm

      Affected

      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 · trixie

      Affected

      nvd · msgpack-c · debian · 13

    • 6.0.1-3+b1 · arm64 · trixie

      Affected

      nvd · msgpack-c · debian · 13

  • Source package: [msgpack-c]

    Details (2)
    • 6.0.1-3+b1 · amd64 · trixie

      Affected

      nvd · msgpack-c · debian · 13

    • 6.0.1-3+b1 · arm64 · trixie

      Affected

      nvd · msgpack-c · debian · 13

  • Source package: [msgpack-c]

    Details (2)
    • 6.0.1-3 · all · trixie

      Affected

      nvd · msgpack-c · debian · 13

    • 6.0.1-3 · all · trixie

      Affected

      nvd · msgpack-c · debian · 13

  • [libmsgpack-dev]Affected

    Source package: [msgpack-c]

    Details (2)
    • 6.0.1-3 · all · trixie

      Affected

      nvd · msgpack-c · debian · 13

    • 6.0.1-3 · all · trixie

      Affected

      nvd · msgpack-c · debian · 13

[openSUSE Tumbleweed]

  • [libmsgpack-c2]Unknown

    Source package: [msgpack-c]

    Details (1)
    • 7.0.2-1.1 · x86_64 · tumbleweed

      Unknown · Fixed: 7.0.2-2.1

      Version impact unknown

      nvd · msgpack-c · opensuse · tumbleweed

  • Source package: [msgpack-c]

    Details (1)
    • 7.0.2-1.1 · x86_64 · tumbleweed

      Unknown · Fixed: 7.0.2-2.1

      Version impact unknown

      nvd · msgpack-c · opensuse · tumbleweed

Observed:

References