Unchecked allocation in msgpack-java JRuby decoder exhausts JVM heap
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-770.
Summary
The Java-platform msgpack gem for JRuby in msgpack-ruby, before 1.8.7, allocates arrays and byte buffers from attacker-controlled array32, str32 and bin32 declared sizes before checking that the data is present. An attacker who supplies a short MessagePack header can cause a very large allocation or sustained heap growth when an application decodes untrusted input with MessagePack.unpack or MessagePack::Unpacker, which can exhaust the shared JVM heap. The flaw is classified as CWE-1325 and CWE-770. Map32 and declared counts at or above 2^31 are not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| msgpack | msgpack-ruby | before 1.8.7 | 1.8.7 | Patch available | CNA |
| — | msgpack (RubyGems) | before 1.8.7 | 1.8.7 | Patch available | GHSA-73v3-wf97-vpgj |
- msgpack-ruby Vendormsgpack Affected before 1.8.7 Fixed in 1.8.7 Patch available CNA
- msgpack (RubyGems) Vendor— Affected before 1.8.7 Fixed in 1.8.7 Patch available GHSA-73v3-wf97-vpgj
Remediation
Upgrade the msgpack gem to version 1.8.7, which fixes this issue in msgpack-ruby (RubyGems msgpack, from 0 before 1.8.7).
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA msgpack-ruby (msgpack) Fixed in 1.8.7
- Fix · GHSA-73v3-wf97-vpgj msgpack (RubyGems) Fixed in 1.8.7 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126366
- 2026-11-12 Alias added: GHSA-73v3-wf97-vpgj
- 2026-11-12 Fix available: RubyGems/[email protected] · GHSA-73v3-wf97-vpgj
- 2026-11-12 CVSS score added · GHSA-73v3-wf97-vpgj
- 2026-11-12 Weakness changed · GHSA-73v3-wf97-vpgj
- 2026-11-12 5 new references · GHSA-73v3-wf97-vpgj
- 2026-11-13 CISA SSVC decision points changed
References
Other 5
- 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://github.com/msgpack/msgpack-ruby
More msgpack vulnerabilities
- TI-2026-17336 Uncontrolled resource consumption in msgpack-java CVSS 3.1HIGH 7.5
- TI-2026-61499 msgpack-java through 0.9.12 Stack Overflow via Nested Arrays CVSS 4.0MEDIUM 6.9
- TI-2026-51079 msgpack-c Integer Overflow in msgpack_unpacker_expand_buffer Causes a False-Success Undersized Reservation CVSS 4.0MEDIUM 5.8
- TI-2026-39368 MessagePack::Buffer#clear Use-After-Free that Enables Cross-Buffer Disclosure CVSS 4.0LOW 2.1
- TI-2026-92340 Heap buffer overflow in msgpack-c vrefbuffer migration CVSS 4.0MEDIUM 5.8
- TI-2026-79420 Memory leak in MessagePack C extension on strict map key failure CVSS 3.1HIGH 7.5
Sources
- CVE-2026-126366 · CVE Program
- CVE-2026-126366 · NVD
- FIRST EPSS
- GHSA-73v3-wf97-vpgj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences