MessagePack-CSharp CVE-2026-48109
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint accepting MessagePack input
-
DeliveryCraft payload with oversized LZ4 length token
-
ExploitSend payload to deserialization endpoint
-
ExecutionDecoder reads past compressed buffer
-
PersistAccessViolationException terminates worker process
-
ImpactRepeat to sustain denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires that the target .NET application deserialize attacker-supplied MessagePack data using the Lz4Block or Lz4BlockArray compression modes - applications using MessagePack without LZ4 compression enabled are not affected. No authentication or user interaction is required (PR:N/UI:N) and the attack is reachable over the network wherever the deserialization endpoint is exposed. The limiting factor is configuration: MessagePack's LZ4 modes are opt-in (configured via MessagePackSerializerOptions.WithCompression), so deployments that left compression at the default None setting are not exploitable, and the affected versions are nuget/MessagePack < 2.5.301 or >= 3.0.214-rc.1 and < 3.1.7. |
| Impact | The provided CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H (base 8.2) reflects a network-reachable, unauthenticated DoS with low confidentiality impact from possible over-read disclosure - realistic for any service that deserializes MessagePack from clients with LZ4 enabled. EPSS, KEV, and SSVC data are not provided in the input, so there is no signal of active exploitation or automation; this should be treated as a high-impact but not-yet-weaponized library bug. The real-world blast radius depends on whether downstream apps enable LZ4 compression on untrusted input paths - many MessagePack consumers leave compression off by default, which narrows exposure compared to the raw 8.2 score. No public exploit identified at time of analysis, but the deterministic nature of the bug (single crafted payload kills the process) makes weaponization for targeted DoS straightforward once details are studied. |
| Exploit ScenarioDerived | An attacker submits a single crafted MessagePack payload - for example to a public WebSocket, gRPC-over-MessagePack, or HTTP API endpoint that uses MessagePack with LZ4 compression - in which the LZ4 token's literal-length or match-length field encodes a value larger than the remaining compressed bytes. During decompression the decoder dereferences past the source buffer, raising an AccessViolationException that tears down the worker process and denies service to all in-flight users. Repeating the request after each restart sustains the outage; no authentication, user interaction, or chained primitive is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 11, 2026
Denial-of-service in MessagePack-CSharp's optional LZ4 decompression path (Lz4Block and Lz4BlockArray modes) allows remote unauthenticated attackers to crash .NET applications that deserialize untrusted MessagePack payloads. A crafted payload with manipulated LZ4 token/length fields triggers an out-of-bounds read raising an AccessViolationException, and may also leak limited adjacent memory before the process dies. No public exploit identified at time of analysis, but the vendor has published an advisory (GHSA-hv8m-jj95-wg3x) with patched releases 2.5.301 and 3.1.7.
RemediationAI
Vendor-released patch: upgrade MessagePack to 2.5.301 on the v2 branch or 3.1.7 on the v3 branch, per advisory GHSA-hv8m-jj95-wg3x (https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-hv8m-jj95-wg3x). If immediate upgrade is not feasible, disable the Lz4Block and Lz4BlockArray compression modes on any deserialization path that accepts untrusted input - this is the most effective mitigation but breaks interoperability with peers that send LZ4-compressed payloads. Alternatively, restrict acceptance of compressed payloads to strongly authenticated/trusted producers (mTLS or signed-envelope gating), accepting that any compromise of a trusted peer reintroduces the risk. As a defense-in-depth measure, isolate MessagePack deserialization in a separate process or container with supervised restart so an AccessViolationException only kills the sandbox, at the cost of added IPC latency and operational complexity.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in nuget
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MessagePack-CSharp is a widely deployed binary-serialization library for .NET (distributed via NuGet as the MessagePack package) that supports two optional LZ4 compression modes - Lz4Block (whole-buffer) and Lz4BlockArray (chunked). The vulnerable decoder is derived from a deprecated LZ4 fast-decompression routine that processes the LZ4 token byte and the literal/match length varints without bounding reads against the actual source buffer length. When the attacker-controlled token or extended length field overstates the remaining input, the unsafe pointer walk reads past the end of the compressed buffer. Although no CWE is assigned, the behavior corresponds to CWE-125 (out-of-bounds read) with a secondary CWE-1284 (improper validation of specified quantity in input), manifesting in unmanaged memory as an AccessViolationException in the .NET runtime.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Network-reachable and unauthenticated, but AC:H because the target must have opted into LZ4 compression on an untrusted-input path; low confidentiality from possible over-read, no integrity impact, high availability from process crash.
Primary rating from Vendor (https://github.com/MessagePack-CSharp/MessagePack-CSharp).
CVSS VectorVendor: https://github.com/MessagePack-CSharp/MessagePack-CSharp
DescriptionCVE.org
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
Executive ViewAI
MessagePack-CSharp contains a high-severity denial-of-service vulnerability affecting .NET applications that process untrusted data with the optional LZ4 decompression feature enabled. Remote attackers can crash affected services and potentially access adjacent memory via specially crafted payloads, requiring immediate upgrade to patched releases to prevent application outages.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-hv8m-jj95-wg3x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB