Allocation of Resources Without Limits or Throttling Affecting messagepack package, versions [,2.5.301)[3.0,3.1.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (14th 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 Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-MESSAGEPACK-17660967
  • published28 Jun 2026
  • disclosed25 Jun 2026
  • creditAArnott

Introduced: 25 Jun 2026

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

How to fix?

Upgrade MessagePack to version 2.5.301, 3.1.7 or higher.

Overview

MessagePack is a MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the deserialization process for multi-dimensional arrays. An attacker can cause excessive memory allocation by supplying crafted payloads with large dimension values and a small element array, leading to out-of-memory exceptions, application termination, or high CPU usage from zero-initialization of oversized arrays. This is only exploitable if untrusted data is deserialized into models containing multi-dimensional arrays.

Workaround

This vulnerability can be mitigated by avoiding deserialization of untrusted payloads into schemas with multi-dimensional arrays and preferring bounded lists, dictionaries with count limits, or jagged arrays with application-level limits.

CVSS Base Scores

version 4.0
version 3.1