CVE-2026-54522 json
MessagePack::Buffer#clear Use-After-Free that Enables Cross-Buffer Disclosure
published 2026-07-30 3 mo ago modified 2026-10-23 16 d ago also GHSA-4mrv-5p47-p938 , EUVD-2026-51235
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems msgpack 1.8.2
- msgpack messagepack 1.8.2
- ruby-msgpack Debian 14 1.8.3-1
debian advisories DEBIAN-CVE-2026-54522
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-54522 updated cvss 5.1
msgpack: MessagePack for Ruby: Information disclosure and data corruption due to use-after-free in Buffer#clear
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-4mrv-5p47-p938 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.1 | 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 |
| CNA | 4.0 | 2.1 | 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/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 |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | msgpack | <1.8.2 |
1.8.2 |
Affected products
- msgpack msgpack-ruby
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90
web, patch
-
github.com
/msgpack/msgpack-ruby/security/advisories/GHSA-4mrv-5p47-p938
exploit, web, vendor-advisory
-
github.com
/msgpack/msgpack-ruby
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/msgpack/CVE-2026-54522.yml
web
-
cve.org
/CVERecord/SearchResults?query=CVE-2026-54522
web
Sources
- CVE List CVE-2026-54522
- GitHub Advisory GHSA-4mrv-5p47-p938
- NVD CVE-2026-54522
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.