HackerFeeds
All CVEs

CVE-2026-126366: MessagePack for Ruby Unbounded Resource Allocation

HIGH7.5

Published 2026-11-13 · Updated 2026-11-13 · Source security-advisories@github.com

Not known to be exploited · high severity — update MessagePack for Ruby to 1.8.7 or later in your next patch cycle.

What to do

  1. Update MessagePack for Ruby to version 1.8.7 or later. Versions before 1.8.7 are affected.
  2. Until it is patched, do not leave MessagePack for Ruby reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Apply rate limits and request-size limits in front of the affected service.

Affected and fixed versions

ProductAffectedFixed in
MessagePack for Ruby< 1.8.71.8.7

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high.

CVSS 3.1 metrics for CVE-2026-126366
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionNoneNo action by a victim is needed.
ConfidentialityNoneNo effect on confidentiality.
IntegrityNoneNo effect on integrity.
AvailabilityHighTotal loss of availability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: Unbounded Resource Allocation

The software allocates resources without limit, so an attacker can exhaust them and cause denial of service.

Classified as CWE-770, CWE-1325.

Description

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.

Advisory text as published in the NVD record.

View on NVD