CVE-2026-126366

GHSA-73v3-wf97-vpgj · published 12 Nov 2026 · updated 17 Nov 2026

msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte message forces multi-GiB OOM

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in msgpack 1.8.7.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
msgpack<1.8.7
rubygems: msgpack<=1.8.61.8.7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126366 severity on Zeptric[![CVE-2026-126366](https://zeptric.io/badge/cve/CVE-2026-126366.svg)](https://zeptric.io/cve/CVE-2026-126366)