CVE-2026-54522
LOW 2.1CVSS 4.0MessagePack::Buffer#clear Use-After-Free that Enables Cross-Buffer Disclosure
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.
- Published
- 30 Jul 2026
- Last modified
- 23 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-416
- Also known as
- GHSA-4mrv-5p47-p938
- Sources
- NVDJSONOSV GHSA-4mrv-5p47-p938JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | msgpack | messagepackcpe:2.3:a:msgpack:messagepack:*:*:*:*:*:ruby:*:* |
< 1.8.2 | 1.8.2 |
| OSV | RubyGems | msgpack | < 1.8.2 | 1.8.2 |
References
- https://github.com/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90 · Patch, WEB
- https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-4mrv-5p47-p938 · Exploit, Vendor Advisory, WEB
- https://github.com/msgpack/msgpack-ruby · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/msgpack/CVE-2026-54522.yml · WEB
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54522 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 30 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Jul 2026)