Out-of-bounds Read Affecting messagepack package, versions [,2.5.301)[3.0.54-alpha,3.1.7)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.51% (41st 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 IDSNYK-DOTNET-MESSAGEPACK-17318029
  • published12 Jun 2026
  • disclosed11 Jun 2026
  • creditUnknown

Introduced: 11 Jun 2026

CVE-2026-48109  (opens in a new tab)
CWE-125  (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 Out-of-bounds Read in the LZ4 decompression path for Lz4Block and Lz4BlockArray modes. An attacker can cause process termination or potentially access unintended memory contents by submitting a specially crafted payload with manipulated LZ4 token or length fields.

Workaround

This vulnerability can be mitigated by disabling LZ4 compression for untrusted input paths, only accepting compressed payloads from strongly trusted producers, or isolating deserialization in a separate process or container with restart supervision.

CVSS Base Scores

version 4.0
version 3.1