Skip to main content

MessagePack-CSharp EUVDEUVD-2026-38386

| CVE-2026-48510 MEDIUM
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
2026-06-22 GitHub_M GHSA-v72x-2h86-7f8m
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify target endpoint accepting LZ4-compressed MessagePack
  2. Delivery
    Craft Lz4Block payload with legitimate compressed data
  3. Exploit
    Inflate declared uncompressed length field to multi-gigabyte value
  4. Install
    Submit payload to endpoint
  5. C2
    Library allocates oversized buffer before validation
  6. Execute
    Repeat to exhaust heap memory
  7. Impact
    Service availability degraded or crashed

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
Exploitation Conditions

Exploitation requires two simultaneous conditions: first, the target application must be using MessagePack-CSharp for deserialization with LZ4 compression enabled - specifically, it must be processing Lz4Block or Lz4BlockArray message types; applications using standard uncompressed MessagePack are not affected. Second, the attacker must be able to deliver crafted MessagePack messages to an endpoint that deserializes them without prior content validation - this is the AT:P (Attack Requirements: Present) condition in the CVSS 4.0 vector. The library itself imposes no authentication gate (PR:N), but the application's own access controls may require authentication before a MessagePack endpoint is reachable, which would further limit exposure. Exploitation is strictly availability-scoped: no code execution, data exfiltration, or integrity manipulation has been demonstrated or implied by the technical description.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N) with a base score of 6.3 accurately captures the bounded but real risk. The AC:H and AT:P flags are the critical modifiers: exploitation requires both that the target application has LZ4 compression enabled during deserialization and that the attacker can supply untrusted Lz4Block or Lz4BlockArray payloads to the endpoint - a non-default deployment condition that materially limits exposure. The impact is restricted to low availability (VA:L) on the vulnerable system, consistent with transient-to-sustained memory pressure rather than a guaranteed service crash, and there is no confidentiality or integrity impact despite the 'Information Disclosure' tag appearing in the source intelligence metadata - that tag conflicts directly with the CVSS vector (VC:N/VI:N) and the description and should be disregarded. No EPSS data was provided in the input, and the absence of a KEV listing and public exploit aligns with the moderate score. Real-world priority is elevated for services that deserialize MessagePack from untrusted network clients (public APIs, inter-service message queues accepting external input), and substantially lower for internal or authenticated integrations where the AT:P condition is not met.

Exploit ScenarioDerived

An attacker targeting a public-facing .NET API that deserializes untrusted MessagePack input with LZ4 compression enabled sends a stream of small, crafted Lz4Block messages each asserting an uncompressed length of several gigabytes. The server pre-allocates oversized output buffers for each arriving message before decompression validation fails, progressively exhausting available heap memory and causing the service to degrade or crash. No public proof-of-concept is required for this attack class, as the decompression bomb technique is well-documented and the length-before-validation pattern makes triggering the allocation straightforward.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

LZ4 decompression in MessagePack for C

prior to versions 2.5.301 (v2 branch) and 3.1.7 (v3 branch) allows remote attackers to force excessive heap memory allocations via crafted Lz4Block or Lz4BlockArray payloads that declare arbitrarily large uncompressed lengths. The library allocates an output buffer sized to the attacker-controlled wire-format length field before performing any validation of the compressed data or the reasonableness of the declared expansion, enabling a classic decompression-bomb denial-of-service. No public exploit has been identified at time of analysis and no CISA KEV listing exists; however, the attack pattern is mechanically straightforward for any application that accepts untrusted MessagePack data with LZ4 compression enabled.

RemediationAI

Upgrade to MessagePack-CSharp 2.5.301 (v2 branch) or 3.1.7 (v3 branch), the vendor-released patches confirmed by GitHub Security Advisory GHSA-v72x-2h86-7f8m, which add validation of declared uncompressed lengths prior to buffer allocation. If an immediate upgrade is not feasible, the most effective compensating control is to disable LZ4 compression in deserialization options - by configuring MessagePackSerializerOptions without LZ4 compression, the Lz4Block and Lz4BlockArray code paths are never exercised; the trade-off is increased payload sizes and bandwidth consumption. Where LZ4 must remain enabled, adding a hard upper bound on incoming MessagePack payload sizes at the network gateway or application middleware layer limits the maximum memory allocatable per request but does not eliminate the root cause. The vendor advisory is the authoritative remediation reference: https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-v72x-2h86-7f8m.

Affected VersionsENISA

MessagePack-CSharp < 2.5.301
MessagePack-CSharp 3.1.7, < 3.1.7

Affected Packages

nuget messagepack fix: 2.5.301, 3.1.7
euvd messagepack_csharp fix: 2.5.301, 3.1.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in nuget, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-409 (Improper Handling of Highly Compressed Data, also known as a decompression bomb or data amplification attack) is the root cause class. MessagePack-CSharp (CPE: cpe:2.3:a:messagepack-csharp:messagepack-csharp:*:*:*:*:*:*:*:*) is a high-performance binary serialization library for .NET/C

that optionally supports LZ4 compression of message payloads via two extension types: Lz4Block and Lz4BlockArray. The vulnerable code path reads the declared uncompressed length from the wire-format message header and uses it to pre-allocate an output buffer before the LZ4 decompression begins and before any structural validation of the compressed data is performed. Because this length field is fully attacker-controlled and subject to no upper-bound check, a trivially small compressed payload can assert a multi-gigabyte uncompressed size, forcing the runtime to attempt a correspondingly large heap allocation. This is a well-understood data amplification primitive; the novelty here is its presence in a widely-used .NET serialization library.

Know when Messagepack Csharp gets its next vulnerability

  • 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

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Network vector with high complexity because LZ4 compression must be enabled and attacker must reach the deserialization endpoint; availability-only low impact with no scope change.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 22, 2026 - 23:02 EUVD

DescriptionCVE.org

MessagePack for C

is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, when MessagePack-CSharp decompresses Lz4Block or Lz4BlockArray payloads, it reads declared uncompressed lengths from the wire and allocates output buffers based on those lengths before validating that the compressed data is valid or that the declared expansion is reasonable. A small payload can claim a very large uncompressed length and force a large allocation before LZ4 decoding begins. This vulnerability is fixed in 2.5.301 and 3.1.7.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
popular .NET binary serialization library, not universally deployed
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-48502 HIGH
8.2 Jun 22

Denial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to terminate host pr

CVE-2026-48506 HIGH POC
7.5 Jun 22

Denial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to crash application

CVE-2026-48517 MEDIUM
6.3 Jun 22

Typeless deserialization in MessagePack-CSharp allows blocked types to be instantiated by wrapping them inside arrays or

CVE-2026-48509 MEDIUM
6.3 Jun 22

Insecure default initialization in MessagePack for C#'s ASP.NET Core MVC formatter exposes .NET web applications to hash

CVE-2026-48511 MEDIUM
6.3 Jun 22

Quadratic CPU and memory allocation behavior in MessagePack-CSharp's ExpandoObjectFormatter enables remote unauthenticat

CVE-2026-48512 MEDIUM
6.3 Jun 22

Uncontrolled recursion in MessagePack-CSharp's JSON conversion helpers allows remote attackers to crash .NET host proces

CVE-2026-48513 MEDIUM
6.3 Jun 22

Uncontrolled recursion in MessagePack for C# allows network-reachable attackers to crash applications by submitting deep

CVE-2026-48514 MEDIUM
6.3 Jun 22

Unchecked large-array allocation in MessagePack for C# exposes any .NET application deserializing untrusted MessagePack

CVE-2026-48515 MEDIUM
6.3 Jun 22

Heap exhaustion via crafted multi-dimensional array payloads in MessagePack-CSharp affects all v2.x releases before 2.5.

CVE-2026-48516 MEDIUM
6.3 Jun 22

CPU denial of service in MessagePack for C# affects applications deserializing ILookup<TKey,TElement> types from untrust

CVE-2026-92707 MEDIUM
5.3 Oct 15

Denial of service in MessagePack-CSharp occurs when an application deserializes attacker-controlled MessagePack data int

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy