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

Published Jun 11, 2026
·
Updated

Impact

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 issue affects applications that deserialize untrusted data while LZ4 compression is enabled.

Patches

The v2 versions are patched as of 2.5.301. The v3 versions are patched as of 3.1.7.

Workarounds

Instead of upgrading, an application may take the following precautions:

1. Disable LZ4 compression for untrusted input paths (Lz4Block, Lz4BlockArray). 2. Only accept compressed payloads from strongly trusted producers. 3. Isolate deserialization in a separate process/container with restart supervision to limit availability impact.

Resources

- MESSAGEPACKCSHARP-010

Other sources

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.

MITRE

Affected Software

4 affected componentsFixes available
nuget/MessagePack>=3.0.214-rc.1<3.1.7
3.1.7
nuget/MessagePack<2.5.301
2.5.301
MessagePack Messagepack C\#<2.5.301
MessagePack Messagepack C\#>=3.0.3<3.1.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nuget/MessagePack to a version that resolves this vulnerability.

    Fixed in 3.1.7
  2. Upgrade

    Upgrade nuget/MessagePack to a version that resolves this vulnerability.

    Fixed in 2.5.301
  3. Configuration

    Disable LZ4 compression for untrusted input paths by not enabling the Lz4Block or Lz4BlockArray compression modes.

    MessagePack (nuget/MessagePack) compression_mode = disable LZ4 (do not use Lz4Block or Lz4BlockArray)
  4. Compensating control

    Isolate deserialization of untrusted data into a separate process or container with restart supervision to limit availability impact if decompression causes a crash.

  5. Compensating control

    Only accept compressed (LZ4) payloads from strongly trusted producers; validate and restrict sources before decompressing.

Event History

Jun 11, 2026
Advisory Published
via GitHub·08:34 PM
Data Sourced
via GitHub·08:34 PM
DescriptionSeverityAffected Software
Jun 22, 2026
CVE Published
via MITRE·09:19 PM
Data Sourced
via MITRE·09:19 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-48109?

CVE-2026-48109 has a high severity rating of 8.2.

2

How do I fix CVE-2026-48109?

To fix CVE-2026-48109, update to the latest version of the MessagePack library that addresses this vulnerability.

3

What impact does CVE-2026-48109 have on my system?

CVE-2026-48109 allows a remote attacker to exploit a weakness in the LZ4 decompression path used by MessagePack, potentially leading to a denial of service.

4

What software is affected by CVE-2026-48109?

CVE-2026-48109 affects the MessagePack library used in NuGet packages.

5

Is CVE-2026-48109 exploitable remotely?

Yes, CVE-2026-48109 can be exploited remotely due to its inherent vulnerability in handling compressed data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203