Skip to main content

msgpack-ruby CVE-2026-126366

| EUVDEUVD-2026-124750 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-12 GitHub_M GHSA-73v3-wf97-vpgj
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach JRuby msgpack decode endpoint
  2. Delivery
    Send 5-byte array32/str32/bin32 header
  3. Exploit
    Decoder pre-allocates declared size
  4. Execution
    JVM attempts multi-GiB allocation
  5. Persist
    OutOfMemoryError exhausts shared heap
  6. Impact
    Host JVM destabilized or killed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to be running the Java-platform msgpack gem under JRuby (version <= 1.8.6) and to decode attacker-controlled MessagePack input through MessagePack.unpack or MessagePack::Unpacker. No authentication, user interaction, or non-default configuration is otherwise needed (AV:N/AC:L/PR:N/UI:N) - any application that parses untrusted MessagePack on JRuby is exposed. Limiting factors that reduce real-world risk: CRuby/MRI deployments are NOT affected at all (they already cap allocations), the issue is confined to array32/str32/bin32 headers, declared counts at or above 2^31 are cleanly rejected with MessagePack::UnderflowError, and map32 does not pre-allocate. Impact is availability-only; the heightened severity on JVM stems from the shared heap, where one crafted message can affect the entire host runtime rather than a single worker.

Impact

This is a genuine but bounded availability (DoS) issue, not a confidentiality/integrity compromise. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 HIGH) is internally consistent with the mechanism: a remote, unauthenticated attacker can send a tiny (5-byte) MessagePack header that forces a massive allocation, and C:N/I:N/A:H correctly reflects a resource-exhaustion impact only. The vuln.today decision label is 'this_week' - meaningful priority but explicitly NOT 'act_now' or 'emergency'. KEV status is not indicated in the input, so there is no confirmation of active exploitation; EPSS is not provided, so widespread opportunistic exploitation probability cannot be quantified from the data. Crucially, the raw 7.5 score overstates real-world blast radius because the flaw is confined to the JRuby/Java-platform gem (ext/java Decoder): CRuby deployments - the large majority of Ruby installs - are NOT affected, having had the SHRT_MAX cap since 1.7.3 and the buffered-bytes cap (commit c8d42d8) since 1.8.6. The advisory also notes Fluentd is explicitly not affected (CRuby-only). The GHSA advisory contains a detailed, independently measured reproduction (JRuby 9.4.12 / OpenJDK 25, released gem 1.8.6-java), so the technical claim is well-substantiated. Net: real priority for organizations running long-lived JRuby services (Rails/JDBC/Logstash-class pipelines) that decode untrusted MessagePack, but a non-issue for CRuby-only shops despite the HIGH score.

Exploit ScenarioDerived

A long-lived JRuby application (e.g. a Rails or streaming service) that decodes untrusted MessagePack input via MessagePack.unpack or MessagePack::Unpacker receives a crafted 5-byte message whose array32/str32/bin32 header declares a count such as 0x7FFFFFFF or 5×10^8. The Java decoder pre-allocates an array or byte buffer of that declared size before verifying any elements/bytes are present, triggering a multi-GiB allocation that raises java.lang.OutOfMemoryError on the shared JVM heap and can destabilize or kill the whole host process rather than a single request. A verified, measured proof-of-concept (with reproduction scripts and heap measurements) is published in the GHSA advisory, though it is a reproduction kit rather than a packaged weaponized exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

Heap exhaustion in the JRuby (java platform) build of the msgpack gem, versions 1.8.6 and earlier, lets a remote attacker who supplies MessagePack data to MessagePack.unpack or MessagePack::Unpacker force allocations sized from the declared header count rather than from the bytes actually delivered. A five-byte array32, str32 or bin32 header declaring up to just under 2^31 elements or bytes triggers an immediate large allocation, producing OutOfMemoryError on the shared JVM heap; below the failure threshold the same header silently grows used heap (measured +78 MiB for a declared 2x10^7 array with zero elements) with no exception and no log line. CRuby/MRI deployments are unaffected, map32 does not pre-allocate, and counts at or above 2^31 are cleanly rejected with MessagePack::UnderflowError. The flaw is fixed in 1.8.7; a proof-of-concept harness verified against the released 1.8.6-java gem on JRuby 9.4.12 / OpenJDK 25 accompanies the upstream advisory, and the vendor rates the issue this_week priority (CVSS 7.5, availability-only, no public KEV listing).

RemediationAI

Vendor-released patch: msgpack 1.8.7, which caps the initial container allocation by bytes actually buffered and grows as elements arrive (RubyArray pre-sized to min(size, buffer.remaining())) and refuses extension/byte payloads larger than the remaining buffer with BufferUnderflowException instead of allocating the declared length up front; upgrade the java-platform gem to 1.8.7 (commit ca0efc1256c687b428c46dd68ce000ff515d53f2, release https://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.7, advisory https://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-73v3-wf97-vpgj). Where an immediate upgrade is not possible, the exposure is eliminated by running the decoder on CRuby/MRI, which has had the equivalent per-container and buffered-bytes caps since 1.7.3 and 1.8.6 respectively; the trade-off is a runtime migration rather than a configuration change. As an interim control for JRuby deployments, reject or quarantine MessagePack payloads whose array32, str32 or bin32 headers declare counts or lengths far above the largest legitimate message before handing them to MessagePack.unpack or Unpacker#feed, since map32 and counts at or above 2^31 are not part of the affected behaviour; the trade-off is that any legitimate oversized payload will also be rejected, so the threshold must be derived from real traffic. Constraining the JVM with a small -Xmx limits blast radius per process but does not prevent the per-connection heap growth in the silent band, and the advisory recommends exactly that small-heap setting for anyone reproducing the issue. Applications on CRuby, and Fluentd in particular, need no action for this CVE.

Affected VersionsENISA

msgpack-ruby < 1.8.7

Affected Packages

rubygems msgpack fix: 1.8.7
euvd msgpack_ruby fix: 1.8.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in rubygems, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MessagePack is a compact binary serialization format; the msgpack-ruby gem ships two decoders, a C extension used on CRuby and a pure-Java decoder under ext/java/org/msgpack/jruby/Decoder.java used on JRuby. CWE-770 (allocation of resources without limits or throttling, mapped additionally to CWE-1325) is rooted in the Java decoder sizing containers directly from the element or byte count written in the message header, before any verification that the corresponding data has arrived. In the released 1.8.6 code, the array32 dispatch arm routes to consumeArray(int size), which executes new IRubyObject[size] immediately, and str32/bin32 route through consumeString/readBytes(int size), which execute new byte[size] immediately; only getUnsignedInt() guards the value, rejecting counts with the top bit set (>= 2^31) with MessagePack::UnderflowError while leaving the entire positive band below 2^31 unbounded. map32 is not affected because consumeHash grows per element instead of pre-sizing. The CRuby decoder has carried two generations of protection the Java path lacks: a per-container cap (INITIAL_BUFFER_CAPACITY_MAX = SHRT_MAX) since 1.7.3, and since commit c8d42d8 in 1.8.6 a cap on initial allocation based on bytes actually buffered, with strings allocated as min(remaining, buffered). Because the JVM shares one heap across all threads and connections of a long-lived process, an oversized request on the parser thread can destabilize the whole runtime rather than a single worker process, which is why availability impact outweighs the CRuby analogue; the trigger, per the supplied advisory, is simply a short crafted header fed to the streaming unpacker.

Know when Jruby gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated attacker sends a trivial header over the network (AV:N/AC:L/PR:N/UI:N); impact is pure resource-exhaustion availability (A:H) with no confidentiality or integrity effect and no cross-system scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 23:03 EUVD
CVE Published
Nov 12, 2026 - 22:41 cve.org
HIGH 7.5

DescriptionCVE.org

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.

Technical POC Analysis

CWE-770 (Allocation of Resources Without Limits or Throttling), specifically the sub-pattern CWE-1325.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-126366 is a heap exhaustion vulnerability in the JRuby build of the msgpack Ruby gem (versions 1.8.6 and earlier). Any application using JRuby and msgpack to deserialize untrusted MessagePack data could be forced to allocate excessive JVM heap, leading to OutOfMemoryError and service disruption. This impacts availability of services relying on JRuby, potentially causing outages and affecting customers; CRuby/MRI deployments are not affected.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 55% exploitable
Prevalence
Medium
popular Ruby serialization gem, but only JRuby/Java-platform deployments are affected
Threat Intel
1
1 sources
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy