PT-2026-146089
CVE-2026-126366
·
Published
2026-11-12
·
Updated
2026-11-13
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
msgpack versions prior to 1.8.7
Description
In the Java-platform implementation of the msgpack gem for JRuby, the decoder allocates memory for arrays and byte buffers based on the size declared in the message header before verifying if the actual elements or bytes are available. An attacker can send a short MessagePack header to trigger very large memory allocations or sustained heap growth, potentially leading to a
java.lang.OutOfMemoryError and exhausting the shared JVM heap. This can destabilize or crash the entire JVM process, affecting all threads and connections.The issue specifically affects the following components:
- API Endpoints:
MessagePack.unpackandMessagePack::Unpacker - Vulnerable Parameters:
array32,str32, andbin32declared sizes - Vulnerable Functions:
consumeArray(),consumeString(), andreadBytes()
Note that
map32 and declared counts at or above 2^31 are not affected by this behavior.Recommendations
Update msgpack to version 1.8.7.
As a temporary workaround, restrict the use of
MessagePack.unpack and MessagePack::Unpacker when processing untrusted input. Found an issue in the description? Have something to add? Feel free to write us 👾