CVE-2026-126366: MessagePack for Ruby Unbounded Resource Allocation
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
- Update MessagePack for Ruby to version 1.8.7 or later. Versions before 1.8.7 are affected.
- 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.
- Apply rate limits and request-size limits in front of the affected service.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| MessagePack for Ruby | < 1.8.7 | 1.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.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total 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
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.
References
- Patchhttps://github.com/msgpack/msgpack-ruby/commit/ca0efc1256c687b428c46dd68ce000ff515d53f2
- Patchhttps://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.6
- Patchhttps://github.com/msgpack/msgpack-ruby/releases/tag/v1.8.7
- Advisoryhttps://github.com/msgpack/msgpack-ruby/security/advisories/GHSA-73v3-wf97-vpgj