Skip to main content

MessagePack-CSharp CVE-2026-48516

| EUVDEUVD-2026-38380 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-06-22 GitHub_M GHSA-q2h6-ghwm-5qm8
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
    Reach network-accessible MessagePack endpoint
  2. Delivery
    Craft ILookup payload with colliding TKey hash values
  3. Exploit
    Submit payload to trigger InterfaceLookupFormatter
  4. Execution
    Default comparer accepts all colliding keys
  5. Persist
    O(n²) dictionary insertions exhaust CPU
  6. Impact
    Service 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.

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

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

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

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

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

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
popular .NET serialization library in gaming, Unity, and microservices
Threat Intel
1
1 source
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-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-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