CVE-2026-126366msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte…
MessagePack for Ruby is an implementation of the MessagePack binary serialization format. Prior to 1.8.7, the Java-platform msgpack gem for JRuby allocated arrays and byte buffers directly from attacker-controlled array32, str32, and bin32 declared sizes before confirming that corresponding elements or bytes were available. A short MessagePack header could therefore trigger a very large allocation or sustained heap growth when an application decoded untrusted input through MessagePack.unpack or MessagePack::Unpacker, potentially exhausting the shared JVM heap. map32 and declared counts at or above 2^31 did not use the affected allocation behavior. This issue is fixed in version 1.8.7.
What to do
Fixed builds are available from RubyGems: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ruby-msgpack | Fix pending | UBUNTU-CVE-2026-126366 | |
| Ubuntu 26.04 | ruby-msgpack | Under investigation | UBUNTU-CVE-2026-126366 | |
| Ubuntu 24.04 | ruby-msgpack | Under investigation | UBUNTU-CVE-2026-126366 | |
| Ubuntu 22.04 | ruby-msgpack | Under investigation | UBUNTU-CVE-2026-126366 | |
| Ubuntu 20.04 | ruby-msgpack | Fix pending | UBUNTU-CVE-2026-126366 | |
| Ubuntu 18.04 | ruby-msgpack | Fix pending | UBUNTU-CVE-2026-126366 | |
| Ubuntu 16.04 | ruby-msgpack | Fix pending | UBUNTU-CVE-2026-126366 | |
| RubyGems library | msgpack | Fixed | 1.8.7 | GHSA-73v3-wf97-vpgj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- msgpack-ruby: affected: < 1.8.7
References
- https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-73v3-wf97-vpgj
- https://github.com/msgpack/msgpack-ruby/commit/ca0efc1256c687b428c46dd68ce000ff515d53f2
- https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.6
- https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.