CVEfocus › CVE database › CVE-2026-126366

CVE-2026-126366msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte…

CVSS 7.5 HighEPSS 0.6% (higher than 47% of CVEs)Published 2026-11-12Updated 2026-11-13Assigner: GitHub_M

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.

CWE-1325CWE-770

What to do

Fixed builds are available from RubyGems: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ruby-msgpackFix pendingUBUNTU-CVE-2026-126366
Ubuntu 26.04ruby-msgpackUnder investigationUBUNTU-CVE-2026-126366
Ubuntu 24.04ruby-msgpackUnder investigationUBUNTU-CVE-2026-126366
Ubuntu 22.04ruby-msgpackUnder investigationUBUNTU-CVE-2026-126366
Ubuntu 20.04ruby-msgpackFix pendingUBUNTU-CVE-2026-126366
Ubuntu 18.04ruby-msgpackFix pendingUBUNTU-CVE-2026-126366
Ubuntu 16.04ruby-msgpackFix pendingUBUNTU-CVE-2026-126366
RubyGems librarymsgpackFixed1.8.7GHSA-73v3-wf97-vpgj

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.