Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach network-accessible MessagePack endpoint
-
DeliveryCraft ILookup payload with colliding TKey hash values
-
ExploitSubmit payload to trigger InterfaceLookupFormatter
-
ExecutionDefault comparer accepts all colliding keys
-
PersistO(n²) dictionary insertions exhaust CPU
-
ImpactService availability degraded or denied
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | Three concrete conditions must hold simultaneously: (1) The application uses MessagePack for C on a version prior to 2.5.301 (2.x) or 3.1.7 (3.x). (2) The application deserializes types that include or reference ILookup<TKey,TElement> - the vulnerability is specific to InterfaceLookupFormatter; applications that never deserialize this LINQ interface type are not affected. (3) The deserialization endpoint is reachable by untrusted input - either directly over the network or via any path where an attacker controls the serialized bytes. The CVSS AC:H/AT:P ratings indicate that crafting a key set with effective hash collisions for a specific TKey type requires non-trivial attacker capability and target-specific knowledge. Notably, this vulnerability is exploitable even when the developer has correctly configured options.Security to use an untrusted-data posture, since the formatter ignores that setting - the security opt-in does NOT serve as a limiting factor here. User interaction is not required (UI:N); no authentication is required from the CVSS PR:N rating. |
| Impact | The CVSS 4.0 score of 6.3 with AC:H and AT:P accurately reflects that crafting effective hash-collision payloads is non-trivial and requires attack-specific conditions. The impact is limited to low availability degradation (VA:L) with no confidentiality or integrity consequences. The most significant real-world risk amplifier is the trust bypass: developers who opted into MessagePack's untrusted-data security posture have made an architectural decision to accept untrusted serialized data believing they are protected against hash-collision DoS - this CVE silently invalidates that assurance for any ILookup usage. Applications processing high-volume untrusted MessagePack data (e.g., public APIs, game servers using Unity/MagicOnion) face higher practical risk than the score alone suggests. No EPSS data is available from the provided sources, no KEV listing exists, and no POC has been identified, keeping exploitation priority moderate. CVSS AC:H is consistent with the description; no conflicting signals were detected. |
| Exploit ScenarioDerived | An attacker sends a crafted MessagePack binary payload to a network-accessible endpoint - such as an API or game server - that deserializes ILookup<TKey,TElement> values from client-supplied data. The keys in the payload are engineered to share the same hash code under the default .NET equality comparer, causing the internal dictionary built by InterfaceLookupFormatter to degrade to O(n²) behavior regardless of the application's configured security posture. Repeated or large-payload requests cause sustained CPU exhaustion, degrading or denying service to legitimate users. No public POC has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
CPU denial of service in MessagePack for C
affects applications deserializing ILookup<TKey,TElement> types from untrusted input, exploitable even when the application has explicitly configured MessagePack's untrusted-data security posture. The InterfaceLookupFormatter constructs its internal dictionary with the default equality comparer rather than the security-aware, randomization-backed comparer provided by options.Security.GetEqualityComparer<TKey>(), silently bypassing the protection the developer believed was active. No public exploit code has been identified at time of analysis, and the CVSS 4.0 AC:H/AT:P rating reflects that exploitation requires crafting keys with deliberate hash collisions.
RemediationAI
Upgrade MessagePack for C
to version 2.5.301 (for 2.x consumers) or 3.1.7 (for 3.x consumers); these are the confirmed patched releases per the vendor advisory at https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-q2h6-ghwm-5qm8. For teams unable to upgrade immediately, the most targeted compensating control is to avoid deserializing ILookup<TKey,TElement> directly from untrusted input - use a concrete Lookup<TKey,TElement> or an IEnumerable<IGrouping<TKey,TElement>> with a properly configured formatter instead, which sidesteps the vulnerable InterfaceLookupFormatter path entirely. A secondary infrastructure-level control is to enforce per-request CPU or wall-clock timeouts at the reverse proxy or ASP.NET Core middleware layer (e.g., HttpContext.RequestAborted with a timeout policy), which bounds the CPU consumption achievable per request but does not eliminate the vulnerability and may cause legitimate timeout errors under load. Neither workaround substitutes for patching.
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 is a binary serialization format; the C
implementation (CPE: cpe:2.3:a:messagepack-csharp:messagepack-csharp) provides type-specific formatters for .NET. The InterfaceLookupFormatter<TKey,TElement> handles deserialization of LINQ's ILookup<TKey,TElement> grouping interface. During deserialization it creates an internal Dictionary<TKey, IGrouping<TKey,TElement>>; in vulnerable versions it passes no comparer to the Dictionary constructor, so EqualityComparer<TKey>.Default is used. The security-aware comparer (obtained via options.Security.GetEqualityComparer<TKey>()) typically injects per-process randomized hashing to prevent adversarial key ordering. Without it, CWE-407 (Insufficient Algorithmic Complexity Defense) applies: an attacker can engineer keys that all map to the same hash bucket, degrading dictionary insertion and lookup from O(1) amortized to O(n), causing CPU exhaustion proportional to payload size.
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
Network-reachable deserialization endpoint drives AV:N; crafting valid hash-collision key sets requires non-trivial effort (AC:H); no credentials needed (PR:N); impact is bounded to partial CPU exhaustion without confidentiality or integrity consequences (A:L, C:N, I:N).
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, InterfaceLookupFormatter<TKey,TElement> constructs an internal Dictionary<TKey, IGrouping<TKey,TElement>> with the default equality comparer instead of the security-aware comparer supplied by options.Security.GetEqualityComparer<TKey>(). This formatter omission allows hash-collision CPU denial of service against ILookup<TKey,TElement> even when the application has opted into the untrusted-data security posture 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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
Quadratic CPU and memory allocation behavior in MessagePack-CSharp's ExpandoObjectFormatter enables remote unauthenticat
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.
Denial of service in MessagePack-CSharp occurs when an application deserializes attacker-controlled MessagePack data int
EUVD-2026-38380
GHSA-q2h6-ghwm-5qm8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB