Skip to main content

MessagePack-CSharp CVE-2026-48511

| EUVDEUVD-2026-38385 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-06-22 GitHub_M GHSA-2x83-8g95-xh59
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
    Identify network endpoint accepting MessagePack input
  2. Delivery
    Craft map payload with thousands of unique string keys
  3. Exploit
    Submit payload to ExpandoObjectFormatter deserializer
  4. Execution
    Each key insertion triggers linear array scan in ExpandoObject internals
  5. Persist
    Quadratic CPU and memory cost exhausts service resources
  6. Impact
    Availability degraded for legitimate users

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

The target application must explicitly use ExpandoObjectFormatter or ExpandoObjectResolver from MessagePack-CSharp to deserialize input - this requires a deliberate opt-in by the developer and is not the default MessagePack-CSharp configuration. The attacker must be able to deliver attacker-controlled MessagePack-encoded data to an endpoint that passes it to the vulnerable deserializer without first enforcing a maximum key-count or payload size restriction. Exploitation is limited by: (1) the non-default nature of ExpandoObject deserialization, meaning only a subset of MessagePack-CSharp deployments are exposed; (2) the absence of upstream payload size guards (many frameworks apply body size limits that may naturally cap the attack); and (3) impact is strictly availability - no code execution, no data exfiltration. Applications using typed, schema-bound MessagePack deserializers are entirely unaffected regardless of version. The CVSS PR:N metric confirms no authentication is required once the attacker can reach the endpoint.

Impact

The provided 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) scores 6.3, which reasonably reflects the constrained impact profile. AC:H and AT:P are meaningful here: the target must explicitly opt into ExpandoObjectFormatter - this is not a default serialization path. The availability impact is rated Low (VA:L), consistent with performance degradation rather than immediate total outage for moderate payloads, though sustained or large submissions could escalate severity. No EPSS score was provided in the input data, which limits probabilistic exploitation forecasting. No CISA KEV listing was referenced, and no public proof-of-concept code has been identified. The advisory's observation that UntrustedData mode is configured yet does not protect this code path is a significant architectural concern: developers who rely on this setting as a complete defense may not have implemented supplementary payload size limits, making affected deployments more exposed than the raw CVSS score implies. Overall, real-world priority is moderate - the attack is straightforward to mount once the endpoint is identified, but the exploitation surface is limited to applications explicitly using ExpandoObject deserialization.

Exploit ScenarioDerived

An attacker sends a crafted MessagePack binary message containing a map with tens of thousands of unique string keys to a .NET service endpoint that uses ExpandoObjectFormatter to deserialize user-supplied content. Each key insertion into ExpandoObject triggers a linear scan of the existing key array, causing total processing time and heap allocation to grow quadratically with key count. Sending repeated such payloads occupies CPU threads and memory, degrading response times for legitimate users and potentially causing timeouts or out-of-memory conditions. No public exploit code has been identified at time of analysis, but the attack primitive is straightforward to implement 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

Quadratic CPU and memory allocation behavior in MessagePack-CSharp's ExpandoObjectFormatter enables remote unauthenticated attackers to degrade or deny service by submitting attacker-controlled MessagePack maps containing many distinct keys. Affected are all releases prior to 2.5.301 (2.x branch) and 3.1.7 (3.x branch). No public exploit code has been identified at time of analysis, and no CISA KEV listing was referenced in available intelligence.

RemediationAI

Upgrade to MessagePack-CSharp 2.5.301 (for 2.x users) or 3.1.7 (for 3.x users), as confirmed by the vendor advisory at https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-2x83-8g95-xh59. If immediate patching is blocked, apply a maximum payload size limit or maximum map key-count restriction at the network boundary or middleware layer (e.g., in ASP.NET Core request body size limits or an API gateway policy), which directly caps the worst-case O(n²) behavior; this is a practical short-term control but does not eliminate the vulnerability. A stronger architectural workaround is to stop using ExpandoObjectFormatter and ExpandoObjectResolver for untrusted data and switch to concrete, strongly-typed MessagePack deserializers, which do not use ExpandoObject internals and are unaffected; this requires schema-aware code changes but removes the vulnerable code path entirely. Avoid relying solely on MessagePackSecurity.UntrustedData as a defense - the advisory confirms it does not protect ExpandoObject insertion.

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-CSharp (CPE: cpe:2.3:a:messagepack-csharp:messagepack-csharp:*:*:*:*:*:*:*:*) is a widely-used high-performance binary serialization library for C

and .NET, also popular in Unity game development. The root cause is classified as CWE-407 (Inefficient Algorithmic Complexity). The vulnerable path is ExpandoObjectFormatter.Deserialize, which populates System.Dynamic.ExpandoObject by calling IDictionary<string, object>.Add for each deserialized map entry. ExpandoObject internally represents member names in array-like structures rather than a hash table, meaning each insertion triggers a linear scan of existing keys and potential array copies. Inserting n distinct keys therefore requires O(n) work per step, producing O(n²) total CPU and allocation cost. The advisory specifically calls out that ExpandoObjectResolver.Options is configured with MessagePackSecurity.UntrustedData - a setting intended to enable collision-resistant dictionary comparers - but this protection is applied to dictionary lookup structures, not to ExpandoObject's internal array management. The quadratic insertion path is therefore entirely unmitigated even when the developer believes they have hardened the deserializer against untrusted input.

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

AC:H reflects the requirement that target explicitly uses ExpandoObjectFormatter; PR:N since no auth is needed once the endpoint is reachable; A:L for limited, non-total availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/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, ExpandoObjectFormatter.Deserialize populates System.Dynamic.ExpandoObject by calling IDictionary<string, object>.Add for each map entry. ExpandoObject internally maintains member names in array-like structures, so inserting many distinct keys can require repeated linear scans and array copies. For large attacker-controlled maps, this produces quadratic CPU and allocation behavior. The issue is especially surprising because ExpandoObjectResolver.Options is configured with MessagePackSecurity.UntrustedData, but collision-resistant dictionary comparers cannot protect ExpandoObject insertion internals. 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 and Unity serialization library, not universally deployed
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

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