CVE-2026-48109 — Vulnerability in MessagePack — CVE Details
MessagePack's LZ4 decompression may fail with AccessViolationException after dereferencing memory from bad input
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.51%). Schedule for your next planned update.
Does your project use an affected MessagePack version?
Paste your packages.lock.json to check it for CVE-2026-48109 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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:
- Disable LZ4 compression for untrusted input paths (
Lz4Block,Lz4BlockArray). - Only accept compressed payloads from strongly trusted producers.
- Isolate deserialization in a separate process/container with restart supervision to limit availability impact.
Resources
- MESSAGEPACKCSHARP-010
Advisory Timeline
- First published June 11, 2026 (168 days ago).
- Last revised September 10, 2026 — 90 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package MessagePack --version 2.5.301
dotnet add package MessagePack --version 3.1.7
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: NuGet (1).
| Package | Fixed In |
|---|---|
| MessagePack NuGet · Affected: 0.1.0-beta, 0.2.0-beta, 0.2.1-beta, 0.2.2-beta (+116 more) | 2.5.301 |
| MessagePack NuGet · Affected: 3.0.300, 3.0.308, 3.1.0, 3.1.1 (+5 more) | 3.1.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
References
Frequently Asked Questions
- What is CVE-2026-48109?
- MessagePack's LZ4 decompression may fail with AccessViolationException after dereferencing memory from bad input. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.2/10).
- How do I check if my project is affected by CVE-2026-48109?
- CVE-2026-48109 affects MessagePack. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-48109 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 36.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-48502HIGH
MessagePack-CSharp: Denial of service vulnerabilities can swamp the CPU or crash the process with stack and heap overflows
- CVE-2026-102529HIGH
HtmlSanitizer: CSS Removal DoS
- CVE-2026-48506HIGH
MessagePack-CSharp: MessagePackReader.Skip can recurse without enforcing maximum object graph depth
- CVE-2026-63184HIGH
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion
- CVE-2026-48509MEDIUM
MessagePack-CSharp: ASP.NET Core MessagePackInputFormatter defaults to TrustedData for HTTP request bodies
- CVE-2026-48511MEDIUM
MessagePack-CSharp: ExpandoObject formatter can perform quadratic insertion work on untrusted maps
- CVE-2020-5234MEDIUM
Untrusted data can lead to DoS attack due to hash collisions and stack overflow in MessagePack
- CVE-2026-48510MEDIUM
MessagePack-CSharp: LZ4 decompression allocates from unbounded declared output lengths