Skip to main content
← All vulnerabilities
CVE-2026-54522GHSA-4MRV-5P47-P938

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.8.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • msgpack msgpack-ruby

    fixed in 1.8.2

  • msgpackRubyGems

    fixed in 1.8.2

References 2

GitHub · msgpack/msgpack-ruby