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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-02)
- Published: 2026-11-12T22:41:38.409Z
- Modified: 2026-11-13T23:17:16.490Z
- Also known as: GHSA-73v3-wf97-vpgj
- Weaknesses: CWE-770, CWE-1325
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- msgpack msgpack-ruby: < 1.8.7
- msgpack (RubyGems): before 1.8.7

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-73v3-wf97-vpgj> (web)
- <https://github.com/msgpack/msgpack-ruby/commit/ca0efc1256c687b428c46dd68ce000ff515d53f2> (web)
- <https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.6> (web)
- <https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.7> (web)
- <https://github.com/msgpack/msgpack-ruby> (package)

## Sources

- CVE List: [CVE-2026-126366](https://www.cve.org/CVERecord?id=CVE-2026-126366), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-73v3-wf97-vpgj](https://github.com/advisories/GHSA-73v3-wf97-vpgj), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126366](https://nvd.nist.gov/vuln/detail/CVE-2026-126366), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126366 · Whole record: https://cve.day/CVE-2026-126366.json · Rebuilt by cve.day 2026-11-25T22:59:50.580Z
