CVE-2026-126366
CVE-2026-126366 · msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte message forces multi-GiB OOM
CVSS 7.5 · High · EPSS 0.6% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- msgpack-rubyNo fix published
- msgpack RubyGemsUpdate to 1.8.7
- ruby-msgpack Ubuntu 16.04 LTSNo fix published
- ruby-msgpack Ubuntu 18.04 LTSNo fix published
- and 5 more
Check the installed version:
gem list --exact msgpackdpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-msgpack"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Affected products and versions
msgpack-ruby
- Versions
- < 1.8.7: Affected
No fix published
msgpack RubyGems
- Versions
- 0.0.1
- 0.2.0
- 0.2.1
- 0.2.2
- 0.3.0
- 0.3.1
All versions (98)
- 0.3.2
- 0.3.3
- 0.3.4
- 0.3.5
- 0.3.6
- 0.3.7
- 0.3.8
- 0.3.9
- 0.4.0
- 0.4.1
- 0.4.2
- 0.4.3
- 0.4.4
- 0.4.5
- 0.4.6
- 0.4.7
- 0.5.0
- 0.5.1
- 0.5.10
- 0.5.11
- 0.5.12
- 0.5.2
- 0.5.3
- 0.5.4
- 0.5.5
- 0.5.6
- 0.5.7
- 0.5.8
- 0.5.9
- 0.6.0
- 0.6.0pre1
- 0.6.1
- 0.6.2
- 0.7.0
- 0.7.0dev1
- 0.7.1
- 0.7.2
- 0.7.2dev1
- 0.7.3
- 0.7.4
- 0.7.5
- 0.7.6
- 1.0.0
- 1.0.1
- 1.0.2
- 1.0.3
- 1.1.0
- 1.2.0
- 1.2.1
- 1.2.10
- 1.2.2
- 1.2.3
- 1.2.4
- 1.2.5
- 1.2.6
- 1.2.7
- 1.2.8
- 1.2.9
- 1.3.0
- 1.3.1
- 1.3.2
- 1.3.3
- 1.4.0
- 1.4.0.pre1
- 1.4.1
- 1.4.2
- 1.4.3
- 1.4.4
- 1.4.4.pre1
- 1.4.5
- 1.5.0
- 1.5.1
- 1.5.2
- 1.5.3
- 1.5.4
- 1.5.5
- 1.5.6
- 1.6.0
- 1.6.1
- 1.7.0
- 1.7.1
- 1.7.2
- 1.7.3
- 1.7.4
- 1.7.5
- 1.8.0
- 1.8.1
- 1.8.2
- 1.8.3
- 1.8.4
- 1.8.5
- 1.8.6
- Affected ranges
- ECOSYSTEM: < 1.8.7
Update to 1.8.7
ruby-msgpack Ubuntu 16.04 LTS
- Versions
- 0.6.2-1build1
- 0.6.2-1build2
- 0.6.2-1build3
- 0.6.2-1build4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-msgpack Ubuntu 18.04 LTS
- Versions
- 1.0.0-1
- 1.1.0-1
- 1.1.0-1build1
- 1.1.0-1build2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-msgpack Ubuntu 20.04 LTS
- Versions
- 1.1.0-1build2
- 1.1.0-1build3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-msgpack Ubuntu 22.04 LTS
- Versions
- 1.1.0-2build1
- 1.1.0-2build2
- 1.4.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-msgpack Ubuntu 24.04 LTS
- Versions
- 1.4.2-2build2
- 1.4.2-2build3
- 1.4.2-2build4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-msgpack Ubuntu 26.10
- Versions
- 1.8.0-1
- 1.8.3-1
- 1.8.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-msgpack Ubuntu 26.04 LTS
- Versions
- 1.7.2-1.1
- 1.8.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-126366