CVE-2026-54522
MessagePack::Buffer#clear Use-After-Free that Enables Cross-Buffer Disclosure
Reported by github_m · Published July 30, 2026
msgpack is fixed in 1.8.2 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| msgpack | RubyGems | 1.8.2 |
| commercial-gitlab-rails-ee-fips-19.2 | Chainguard | 19.2.7-r4 |
| kube-logging-operator | Wolfi | 6.8.0-r0 |
| ruby3.2-fluentd-kubernetes-daemonset-1.19 | Chainguard | 1.19.2.1.1-r7 |
| ruby3.2-fluentd-kubernetes-daemonset-1.19 | Wolfi | 1.19.2.1.1-r7 |
| messagepack | msgpack | 1.8.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| msgpack | msgpack-ruby | < 1.8.2 |
| chainguard | commercial-gitlab-rails-ee-fips-19.2 | 0 |
| wolfi | kube-logging-operator | 0 |
| RubyGems | msgpack | 0 |
| chainguard | ruby3.2-fluentd-kubernetes-daemonset-1.19 | 0 |
| wolfi | ruby3.2-fluentd-kubernetes-daemonset-1.19 | 0 |
| msgpack | msgpack-ruby | 0 |
| chainguard | commercial-gitlab-rails-ee-19.2 | 0 |
| chainguard | kube-logging-operator | 0 |
Timeline
- Jul 30, 2026 CVE Published
- Jul 30, 2026 Coalition ESS Score
- Jul 30, 2026 CVE Updated
- Aug 7, 2026 EPSS Score (16 in total, the first dated here)
- Aug 12, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-54522
vulnetix vdb fixes CVE-2026-54522
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-54522/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-4mrv-5p47-p938 x_refsource_CONFIRM
- https://github.com/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-54522 advisory
- https://github.com/advisories/GHSA-4mrv-5p47-p938 advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/msgpack/CVE-2026-54522.yml advisory
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54522 url