{"id":"CVE-2026-126366","published":"2026-11-12T22:41:38Z","modified":"2026-11-13T22:32:11Z","title":"msgpack-java JRuby decoder allocates from declared header counts with no cap: 5-byte message forces multi-GiB OOM","vendor":"msgpack","product":"msgpack-ruby","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00557,"percentile":0.47323,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-1325","name":"Improperly Controlled Sequential Memory Allocation"}],"references":[{"url":"https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-73v3-wf97-vpgj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/msgpack/msgpack-ruby/commit/ca0efc1256c687b428c46dd68ce000ff515d53f2","tags":["x_refsource_MISC"]},{"url":"https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.7","tags":["x_refsource_MISC"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":9.46},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"msgpack","affectedVersions":[{"vendor":"msgpack","product":"msgpack-ruby","versions":["< 1.8.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-13T16:34:09.602041Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"msgpack","vulnerableRanges":["<1.8.7"],"patched":["1.8.7"],"from":["GHSA-73v3-wf97-vpgj"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-124750","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-54522","published":"2026-07-30","fixed":"1.8.2","kev":false,"link":{"from":"CVE-2026-54522","to":"CVE-2026-126366","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:msgpack","fromFixed":"1.8.2","toFixed":"1.8.7","daysApart":105}]}},{"cve":"CVE-2026-126366","published":"2026-11-12","fixed":"1.8.7","kev":false}],"package":"RubyGems:msgpack"}}