{"id":"CVE-2026-54522","published":"2026-07-30T16:33:06Z","modified":"2026-07-30T17:39:15Z","title":"MessagePack::Buffer#clear Use-After-Free that Enables Cross-Buffer Disclosure","vendor":"msgpack","product":"msgpack-ruby","tier":"tail","description":{"text":"MessagePack for Ruby is an implementation of the MessagePack binary serialization format. Prior to 1.8.2, MessagePack::Buffer#clear in ext/msgpack/buffer.c leaves rmem_last, rmem_end, and rmem_owner stale after _msgpack_buffer_shift_chunk returns an rmem page to the shared pool, allowing a subsequent Buffer#write and a second MessagePack::Buffer to alias the page and disclose or corrupt cross-buffer data. This issue is fixed in version 1.8.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00227,"percentile":0.13686,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-4mrv-5p47-p938","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90","tags":["x_refsource_MISC"]}],"priority":{"score":4.2,"factors":[{"name":"EPSS percentile","points":2.74},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"msgpack","affectedVersions":[{"vendor":"msgpack","product":"msgpack-ruby","versions":["< 1.8.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-30T17:38:58.315032Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"msgpack","vulnerableRanges":["<1.8.2"],"patched":["1.8.2"],"from":["GHSA-4mrv-5p47-p938"],"provenance":"source"}],"summary":{"text":"The msgpack-ruby library, its MessagePack::Buffer#clear method in ext/msgpack/buffer.c, contains a use-after-free flaw: after a memory page is returned to the shared pool, stale buffer pointers are left in place, so a later write and a second buffer can alias the same page. An attacker with local access can exploit this without privileges or user interaction, under a configuration where the library's buffer code runs with multiple buffers in use, to read or corrupt data belonging to another buffer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:37Z"},"euvd":{"id":"EUVD-2026-51235","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-54522","published":"2026-07-30","fixed":"1.8.2","kev":false},{"cve":"CVE-2026-126366","published":"2026-11-12","fixed":"1.8.7","kev":false,"link":{"from":"CVE-2026-54522","to":"CVE-2026-126366","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:msgpack","fromFixed":"1.8.2","toFixed":"1.8.7","daysApart":105}]}}],"package":"RubyGems:msgpack"}}