# CVE-2026-54522: MessagePack::Buffer#clear Use-After-Free that Enables Cross-Buffer Disclosure

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-30T16:33:06.080Z
- Modified: 2026-10-23T22:10:00.160Z
- Also known as: GHSA-4mrv-5p47-p938
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- msgpack msgpack-ruby: < 1.8.2
- msgpack (RubyGems): before 1.8.2
- msgpack messagepack: before 1.8.2

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-4mrv-5p47-p938> (exploit, vendor-advisory, web)
- <https://github.com/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90> (patch, 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)

## Sources

- CVE List: [CVE-2026-54522](https://www.cve.org/CVERecord?id=CVE-2026-54522), CVE Terms of Use, modified 2026-07-30
- GitHub Advisory Database: [GHSA-4mrv-5p47-p938](https://github.com/advisories/GHSA-4mrv-5p47-p938), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54522](https://nvd.nist.gov/vuln/detail/CVE-2026-54522), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-54522 · Whole record: https://cve.day/CVE-2026-54522.json · Rebuilt by cve.day 2026-11-25T22:59:30.645Z
