CVE-2026-54522
MessagePack for Ruby is an implementation of the MessagePack binary …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90
- github.com/msgpack/msgpack-ruby/security/advisories/GHSA-4mrv-5p47-p938
- github.com/rubysec/ruby-advisory-db/blob/master/gems/msgpack/CVE-2026-54522.yml
- www.cve.org/CVERecord/SearchResults?query=CVE-2026-54522
- github.com/advisories/GHSA-4mrv-5p47-p938
- nvd.nist.gov/vuln/detail/CVE-2026-54522
- cve.org/CVERecord?id=CVE-2026-54522
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.