Read the docs

Unchecked allocation in msgpack-java JRuby decoder exhausts JVM heap

Priority LOW 39CWE-1325Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00527 45th percentileScored 2026-11-16
Fix Fixed msgpack-ruby (msgpack): 1.8.7msgpack (RubyGems): 1.8.7

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

VendorProductAffected versionsFixed inStatusSource
msgpackmsgpack-rubybefore 1.8.71.8.7Patch availableCNA
—msgpack (RubyGems)before 1.8.71.8.7Patch availableGHSA-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

  1. 2026-11-12 Threatist record created from CVE-2026-126366
  2. 2026-11-12 Alias added: GHSA-73v3-wf97-vpgj
  3. 2026-11-12 Fix available: RubyGems/[email protected] · GHSA-73v3-wf97-vpgj
  4. 2026-11-12 CVSS score added · GHSA-73v3-wf97-vpgj
  5. 2026-11-12 Weakness changed · GHSA-73v3-wf97-vpgj
  6. 2026-11-12 5 new references · GHSA-73v3-wf97-vpgj
  7. 2026-11-13 CISA SSVC decision points changed

References

  • 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
See all 8 →

Sources