Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify network endpoint accepting MessagePack input
-
DeliveryCraft map payload with thousands of unique string keys
-
ExploitSubmit payload to ExpandoObjectFormatter deserializer
-
ExecutionEach key insertion triggers linear array scan in ExpandoObject internals
-
PersistQuadratic CPU and memory cost exhausts service resources
-
ImpactAvailability 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Messagepack Csharp
View allDenial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to terminate host pr
Denial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to crash application
Typeless deserialization in MessagePack-CSharp allows blocked types to be instantiated by wrapping them inside arrays or
Insecure default initialization in MessagePack for C#'s ASP.NET Core MVC formatter exposes .NET web applications to hash
LZ4 decompression in MessagePack for C# prior to versions 2.5.301 (v2 branch) and 3.1.7 (v3 branch) allows remote attack
Uncontrolled recursion in MessagePack-CSharp's JSON conversion helpers allows remote attackers to crash .NET host proces
Uncontrolled recursion in MessagePack for C# allows network-reachable attackers to crash applications by submitting deep
Unchecked large-array allocation in MessagePack for C# exposes any .NET application deserializing untrusted MessagePack
Heap exhaustion via crafted multi-dimensional array payloads in MessagePack-CSharp affects all v2.x releases before 2.5.
CPU denial of service in MessagePack for C# affects applications deserializing ILookup<TKey,TElement> types from untrust
Denial of service in MessagePack-CSharp occurs when an application deserializes attacker-controlled MessagePack data int
EUVD-2026-38385
GHSA-2x83-8g95-xh59
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB