{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-72854","published":"2026-08-20T19:17:01.040000Z","last_modified":"2026-10-18T20:10:00.110000Z","status":"Deferred","cvss":{"version":"4.0","score":5.8,"severity":"MEDIUM","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","source":"disclosure@vulncheck.com","primary":false},"auth":true,"cwes":["CWE-190","CWE-787"],"cpes":[],"cpes_truncated":false,"vendors":["msgpack"],"products":["msgpack/msgpack-c"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":35,"links":{"html_es":"/es/cve/CVE-2026-72854/","html_en":"/en/cve/CVE-2026-72854/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-72854","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-72854"},"untrusted":{"vendor_name":"msgpack","product_name":"msgpack-c","desc_en":"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.","affected":[{"untrusted_vendor":"msgpack","untrusted_product":"msgpack-c","versions":[]}],"references":[{"url":"https://github.com/msgpack/msgpack-c","tags":[]},{"url":"https://github.com/msgpack/msgpack-c/blob/c-7.0.1/example/lib_buffer_unpack.c","tags":[]},{"url":"https://github.com/msgpack/msgpack-c/blob/c-7.0.1/include/msgpack/unpack.h#L219-L223","tags":[]},{"url":"https://github.com/msgpack/msgpack-c/blob/c-7.0.1/src/unpack.c#L429-L502","tags":[]},{"url":"https://github.com/msgpack/msgpack-c/issues/1181","tags":[]},{"url":"https://www.vulncheck.com/advisories/msgpack-c-integer-overflow-in-msgpack-unpacker-expand-buffer-causes-a-false-success-undersized-reservation","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:21768-1","url":"https://www.suse.com/support/update/","published":"2026-09-06T16:46:14+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for msgpack-c"}},{"source":"suse","id":"SUSE-SU-2026:23630-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-202623630-1/","published":"2026-09-06T16:45:50+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for msgpack-c"}},{"source":"suse","id":"openSUSE-SU-2026:11672-1","url":"https://www.suse.com/support/update/","published":"2026-09-02T00:00:00+00:00","severity":"medium","exploited":false,"untrusted":{"title":"libmsgpack-c2-7.0.2-2.1 on GA media"}}]}