Skip to content
OpenAdvisories
High · 8.2 CVE-2026-48109 EUVD-2026-38390GHSA-hv8m-jj95-wg3x

MessagePack-CSharp: LZ4 decompression may fail with AccessViolationException after dereferencing memory from bad input

Published Jun 22, 2026 · Updated Jun 23, 2026 · Assigned by GitHub_M

Description

MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, A vulnerability exists in the optional LZ4 decompression path used by MessagePack compression modes Lz4Block and Lz4BlockArray. The decoder implementation is based on a deprecated fast-decompression algorithm that does not take a source-length bound. A remote attacker can send a crafted MessagePack payload with manipulated LZ4 token/length fields to force out-of-bounds reads from the compressed input buffer. In affected environments, this can trigger an AccessViolationException during decompression, causing process termination (denial of service). Under some conditions, limited unintended memory disclosure from over-read data may also be possible before failure. This vulnerability is fixed in 2.5.301 and 3.1.7.

Affected products

VendorProductAffectedFixed
MessagePack-CSharp MessagePack-CSharp >= 3.1.7, < 3.1.7, < 2.5.301 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-msgpack No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
NuGet MessagePack < 2.5.301 2.5.301 GHSA-hv8m-jj95-wg3x
NuGet MessagePack >= 3.0.214-rc.1, < 3.1.7 3.1.7 GHSA-hv8m-jj95-wg3x

References