Skip to main content

MessagePack-CSharp CVE-2026-48515

| EUVDEUVD-2026-38381 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-06-22 GitHub_M GHSA-cxmj-83gh-fp49
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send crafted MessagePack payload to public endpoint
  2. Delivery
    Invoke multi-dimensional array formatter with attacker-controlled dimensions
  3. Exploit
    CLR allocates oversized heap block before element validation
  4. Execution
    Repeat to accumulate heap pressure
  5. Persist
    Exhaust managed memory
  6. Impact
    Cause service degradation or crash

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerable application must be deserializing MessagePack payloads received from an untrusted source, AND the deserialized object graph must include at least one field or property typed as a multi-dimensional array (T[,], T[,,], or T[,,,]). Scalar types, List<T>, T[], dictionaries, and other collection shapes do not invoke the affected formatters and are not exploitable via this path. The CVSS 4.0 AT:P rating confirms a specific attack requirement is present. Limiting factors: (1) many MessagePack deployments use only rank-1 arrays or standard collections and are not at risk regardless of trust boundary; (2) applications that consume MessagePack exclusively from trusted internal services face no meaningful threat; (3) upstream payload size limits can reduce impact magnitude but do not eliminate the vulnerability. Authentication requirements are not confirmed from available data beyond the CVSS PR:N rating indicating no privilege level is required at the protocol level.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VA:L/SC:N/SI:N/SA:N) signals a network-reachable, unauthenticated path with a Low availability impact, but AC:H and AT:P together indicate meaningful preconditions must be satisfied before exploitation is possible. There is no EPSS score in the supplied data; KEV status is absent, confirming no known active exploitation. No public POC has been identified. The practical risk is strongly conditional: an attacker must reach a service endpoint that (a) accepts MessagePack from untrusted sources and (b) deserializes types containing multi-dimensional array fields - a specific and non-universal deployment pattern. Services that restrict MessagePack intake to internal trusted callers, or whose schemas do not use T[,]/T[,,]/T[,,,] types, carry essentially zero residual exposure. For the subset of deployments that do match these conditions, repeated crafted requests could cause progressive heap pressure, potentially degrading or crashing the host process. The VA:L rating in CVSS 4.0 may understate sustained-attack impact; a determined adversary sending a volume of crafted requests could achieve full OOM, though no scenario data confirms this.

Exploit ScenarioDerived

An attacker submits a crafted MessagePack-encoded message to a publicly reachable API endpoint that deserializes a type containing a two-dimensional array field. The payload encodes dimension sizes of, for example, 50,000×50,000 integers but provides only a few actual elements, causing the server process to allocate roughly 10 GB of managed heap before the element-count guard fires and the allocation is discarded. Repeating this pattern across multiple connections or rapid sequential requests exhausts available memory, causing the application process to degrade or crash. No public POC has been identified, though the exploitation concept is derivable directly from the public advisory description.

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

Heap exhaustion via crafted multi-dimensional array payloads in MessagePack-CSharp affects all v2.x releases before 2.5.301 and all v3.x releases before 3.1.7, enabling remote unauthenticated attackers to trigger disproportionately large heap allocations with minimal payload bytes. The multi-dimensional array formatters (T[,], T[,,], T[,,,]) allocate based on attacker-supplied dimension values before cross-validating against the encoded element count, so a payload declaring a 10000×10000 array with only a handful of elements forces a massive allocation before any guard fires. No public exploit or active exploitation has been confirmed; the CVSS 4.0 score of 6.3 reflects high attack complexity and a specific prerequisite condition (AT:P), constraining realistic risk to services that deserialize untrusted MessagePack containing multi-dimensional array types.

RemediationAI

Upgrade to MessagePack-CSharp 2.5.301 (v2 branch) or 3.1.7 (v3 branch), both of which correct the allocation-before-validation ordering in the multi-dimensional array formatters; the vendor advisory is at https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-cxmj-83gh-fp49. If patching cannot be applied immediately, disable or gate any API endpoints that accept MessagePack payloads containing multi-dimensional array types (T[,], T[,,], T[,,,]) from untrusted callers - this removes the attack surface at the cost of that specific deserialization functionality. As a secondary control, enforcing a strict maximum payload byte size at the transport or middleware layer (e.g., limiting request body size in ASP.NET Core via MaxRequestBodySize) will reduce the magnitude of any single allocation but will not prevent the vulnerability from being triggered by sufficiently small payloads that still declare large dimensions. Restricting MessagePack endpoints to authenticated, internal callers via network policy or API gateway rules eliminates unauthenticated exposure without requiring application changes.

Affected VersionsENISA

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

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

MessagePack is a compact binary serialization format widely used in .NET microservices and real-time systems. The affected library (cpe:2.3:a:messagepack-csharp:messagepack-csharp) provides type-specific formatters, including formatters for rank-2, rank-3, and rank-4 arrays. The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling): the formatter parses dimension lengths directly from the untrusted byte stream and passes them to the CLR array allocator before performing any cross-check against the separately-encoded element count header. Because CLR array allocation is eager - the runtime provisions the full contiguous block immediately - an attacker can engineer a small payload (just the dimension headers plus a near-empty element array) that forces the host process to commit a large region of managed heap. The element-count guard exists but is reached only after allocation, making it an ineffective check order. Both the v2 and v3 branches of the library contain this logic.

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-reachable unauthenticated path but requires specific multi-dimensional array schema (AC:H); pure heap-exhaustion availability impact, no confidentiality or integrity effect.

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, MessagePack-CSharp's multi-dimensional array formatters read dimension lengths directly from the payload and allocate T[,], T[,,], or T[,,,] before validating that the dimension product matches the encoded element count. The formatter reads a guarded element array header, but allocation of the target multi-dimensional array happens before the dimensions are checked against that element count. A small payload can therefore declare large dimensions, provide an empty or tiny inner array, and cause a large heap allocation before element data is validated. This vulnerability is fixed in 2.5.301 and 3.1.7.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
popular .NET binary serialization library, common in C# microservices
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-48510 MEDIUM
6.3 Jun 22

LZ4 decompression in MessagePack for C# prior to versions 2.5.301 (v2 branch) and 3.1.7 (v3 branch) allows remote attack

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-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