msgpack-ruby(JRuby版)に短いデータでメモリを使い果たされる脆弱性
Summary
MessagePack for RubyのJava版gem(msgpack)で、JRuby上で信頼できない入力を復号すると、わずか5バイトのメッセージで数GiB規模のメモリ確保が起き、JVMのヒープを使い切るおそれがあります。影響するのは1.8.7より前の版で、1.8.7で修正されています。外部から受け取るデータを復号している環境は、1.8.7以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
MessagePack for RubyのJava版gem(msgpack)で、JRuby上で信頼できない入力を復号すると、わずか5バイトのメッセージで数GiB規模のメモリ確保が起き、JVMのヒープを使い切るおそれがあります。影響するのは1.8.7より前の版で、1.8.7で修正されています。外部から受け取るデータを復号している環境は、1.8.7以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| msgpackmsgpack-ruby | — | Not listed |
| rubygemsmsgpack |
< 1.8.7→ 1.8.7 |
1.8.7 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-126366 ruby-msgpack No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com
- web github.com