Skip to main content

MessagePack-CSharp EUVDEUVD-2026-38387

| CVE-2026-48509 MEDIUM
Initialization of a Resource with an Insecure Default (CWE-1188)
2026-06-22 GitHub_M GHSA-2f33-pr97-265q
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 ASP.NET Core endpoint accepting MessagePack bodies
  2. Delivery
    Infer or enumerate dictionary-typed model properties
  3. Exploit
    Craft hash-colliding MessagePack payload targeting identified schema
  4. Execution
    Send repeated unauthenticated HTTP POST requests
  5. Persist
    Trigger O(n) deserialization CPU exhaustion
  6. Impact
    Degrade or deny service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V13 - Configuration Secure default settings
Exploitation Conditions

Two specific conditions must both be true for exploitation to succeed. First, the application must register MessagePackInputFormatter using its parameterless constructor - applications that call new MessagePackInputFormatter(options) with an explicit options object specifying MessagePackSecurity.UntrustedData are not vulnerable regardless of version. Second, at least one ASP.NET Core MVC action must bind a request body to a model type that contains hash-based collection properties (e.g., Dictionary<TKey, TValue>, HashSet<T>, or custom types backed by hashtable internals); endpoints binding only primitive, string, or array-typed models do not expose the hash-collision surface. Exploitation is limited to network-accessible HTTP endpoints; the CVSS 4.0 AT:P (Attack Requirements: Present) metric correctly encodes the requirement that these specific configuration and model-type conditions be met. No authentication is required (PR:N), and no user interaction is needed. Local-only or internal-network-only deployments reduce exposure but do not eliminate the risk if the service is reachable.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L) scoring 6.3 reasonably reflects real-world risk. AC:H and AT:P are critical qualifiers: exploitation requires both that the parameterless constructor was used (rather than the explicit-options overload) AND that affected model properties use hash-based collection types such as Dictionary or HashSet. Applications using only primitive or array-typed model properties are not practically at risk from this specific attack path. No EPSS data was provided in the source intelligence, and the vulnerability is absent from CISA KEV, indicating no confirmed widespread exploitation. The availability and integrity impact ratings are both Low, consistent with targeted DoS rather than full service collapse. The 'Information Disclosure' tag applied by the source reporter appears inconsistent with the described DoS mechanism - the description contains no confidentiality impact, and this tag should be treated with skepticism. Overall, this is a genuine but conditional risk: organizations running ASP.NET Core APIs that deserialize MessagePack from external clients using the default formatter constructor should treat this as a real patching priority, while those using the explicit-options constructor or non-dictionary model types face negligible incremental risk.

Exploit ScenarioDerived

An unauthenticated attacker identifies an ASP.NET Core MVC endpoint that accepts MessagePack-encoded request bodies and binds to a model containing one or more Dictionary or HashSet properties. The attacker crafts a MessagePack payload with a large number of keys engineered to hash to identical buckets under the default (non-randomized) seed, then sends repeated requests to the endpoint. Each request forces the server to perform O(n) comparisons during deserialization, causing CPU spikes that accumulate into service degradation or an effective denial-of-service condition against the target process.

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

Insecure default initialization in MessagePack for C#'s ASP.NET Core MVC formatter exposes .NET web applications to hash-collision denial-of-service attacks. The parameterless MessagePackInputFormatter() constructor silently applies MessagePackSecurity.TrustedData to HTTP request bodies - data that by definition crosses an untrusted boundary - bypassing the hash-seed randomization that MessagePackSecurity.UntrustedData provides. Vendor-released patches are available in versions 2.5.301 and 3.1.7; no public exploit code or CISA KEV listing identified at time of analysis.

RemediationAI

Upgrade to MessagePack-CSharp 2.5.301 (v2 branch) or 3.1.7 (v3 branch) as confirmed by the vendor advisory at https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-2f33-pr97-265q. If an immediate upgrade is blocked, use the explicit constructor overload instead of the parameterless one: pass MessagePackSerializerOptions.Standard.WithSecurity(MessagePackSecurity.UntrustedData) as the options argument when instantiating MessagePackInputFormatter. This directly activates hash-seed randomization and eliminates the vulnerable default without requiring a library version change, though the library upgrade should still be applied at the earliest opportunity. As an additional compensating control, applying ASP.NET Core request-body size limits and endpoint-level rate limiting will reduce the computational leverage an attacker gains from any single crafted request, though these do not address the root cause. Note that switching to UntrustedData may introduce a small per-request performance overhead relative to the TrustedData mode.

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

(CPE: cpe:2.3:a:messagepack-csharp:messagepack-csharp) is a high-performance binary serialization library for .NET, commonly integrated into ASP.NET Core MVC pipelines via the MessagePackInputFormatter class. CWE-1188 (Insecure Default Initialization of Resource) describes the root cause precisely: the parameterless constructor defaults to MessagePackSerializerOptions.Standard with MessagePackSecurity.TrustedData, a mode that omits hash-seed randomization as a performance optimization intended only for internally sourced, application-controlled data. When applied to inbound HTTP request bodies, this creates a HashDoS surface: an attacker can craft MessagePack-encoded payloads containing keys engineered to collide in the same hash bucket, degrading O(1) dictionary lookups to O(n) and exhausting CPU. The MessagePackSecurity.UntrustedData mode randomizes hash seeds per-process to neutralize this attack class. The vulnerability exists precisely because the formatter's design context (HTTP boundary) and its default security context (TrustedData) are mismatched.

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:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.8 MEDIUM

Network reachable via HTTP with no authentication required (AV:N, PR:N), but exploitation requires specific constructor usage and dictionary-typed models (AC:H); confidentiality is unaffected, integrity and availability impacts are both Low.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/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
Low
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, the parameterless MessagePackInputFormatter() constructor uses default serializer options, which resolve to MessagePackSerializerOptions.Standard with MessagePackSecurity.TrustedData. The formatter is designed for ASP.NET Core MVC request bodies, which commonly cross an HTTP trust boundary. This insecure default can expose applications to denial-of-service attacks that MessagePackSecurity.UntrustedData is intended to mitigate, such as hash-collision attacks against dictionary-like model properties. This vulnerability is fixed in 2.5.301 and 3.1.7.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
popular .NET serialization library, narrower than JSON ecosystem
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL 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-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-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