Memory Allocation with Excessive Size Value Affecting msgpack package, versions <1.8.7


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.53% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Memory Allocation with Excessive Size Value vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-MSGPACK-22566145
  • published16 Nov 2026
  • disclosed16 Nov 2026
  • creditcosmo0920

Introduced: 16 Nov 2026

NewCVE-2026-126366  (opens in a new tab)
CWE-770  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade msgpack to version 1.8.7 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the consumeArray and readBytes methods in the JRuby Decoder. A remote attacker can send a short array32, str32, or bin32 header declaring a large size without supplying its contents, making the decoder allocate based on the declared size; declarations below the JVM’s array-size limit can consume available heap, while larger ones can trigger an out-of-memory error because they exceed that limit. Applications parsing untrusted MessagePack data can suffer heap pressure or JVM disruption, including termination.

Notes

  • At header parsing, declared counts or lengths of 2³¹ or greater are rejected with MessagePack::UnderflowError; the attacker must use a lower value, which can still trigger allocations large enough to exhaust the heap.

CVSS Base Scores

version 4.0
version 3.1