{"id":"UBUNTU-CVE-2026-126366","details":"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.","modified":"2026-11-18T11:14:54Z","published":"2026-11-13T00:20:00Z","upstream":["CVE-2026-126366"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-126366"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-126366"},{"type":"REPORT","url":"https://github.com/msgpack/msgpack-ruby/commit/ca0efc1256c687b428c46dd68ce000ff515d53f2"},{"type":"REPORT","url":"https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.6"},{"type":"REPORT","url":"https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.7"},{"type":"REPORT","url":"https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-73v3-wf97-vpgj"}],"affected":[{"package":{"name":"ruby-msgpack","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-msgpack?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.2-1build1","0.6.2-1build2","0.6.2-1build3","0.6.2-1build4"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-msgpack","binary_version":"0.6.2-1build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126366.json"}},{"package":{"name":"ruby-msgpack","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-msgpack?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0-1","1.1.0-1","1.1.0-1build1","1.1.0-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-msgpack","binary_version":"1.1.0-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126366.json"}},{"package":{"name":"ruby-msgpack","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-msgpack?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0-1build2","1.1.0-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-msgpack","binary_version":"1.1.0-1build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126366.json"}},{"package":{"name":"ruby-msgpack","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-msgpack?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0-2build1","1.1.0-2build2","1.4.2-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.2-2","binary_name":"ruby-msgpack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126366.json"}},{"package":{"name":"ruby-msgpack","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-msgpack?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.2-2build2","1.4.2-2build3","1.4.2-2build4"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-msgpack","binary_version":"1.4.2-2build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126366.json"}},{"package":{"name":"ruby-msgpack","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/ruby-msgpack?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.0-1","1.8.3-1","1.8.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.4-1","binary_name":"ruby-msgpack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126366.json"}},{"package":{"name":"ruby-msgpack","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ruby-msgpack?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.2-1.1","1.8.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-msgpack","binary_version":"1.8.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-126366.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}