Skip to main content

MessagePack-CSharp EUVDEUVD-2026-38383

| CVE-2026-48513 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-06-22 GitHub_M GHSA-wfr3-xj75-pfwh
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 application deserializing union-typed MessagePack data
  2. Delivery
    Craft deeply nested union payload targeting unknown-key skip path
  3. Exploit
    Submit payload to network-accessible deserialization endpoint
  4. Execution
    DynamicUnionResolver recurses without depth enforcement
  5. Impact
    Stack exhausted, service crashes

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The target application must use MessagePack-CSharp with one or more types decorated with the [Union] attribute and must rely on DynamicUnionResolver (the default dynamic resolver) for deserialization. The application must accept and process attacker-controlled MessagePack binary data - typically via an HTTP API, gRPC endpoint, message queue consumer, or file upload handler. The CVSS AT:P metric explicitly confirms this precondition: the attack requires the union-type deserialization path to be reachable. Applications that use only statically generated resolvers, avoid [Union] types entirely, or only deserialize data from trusted internal sources are not exposed. Exploitation is further limited to availability impact only - no data exfiltration, authentication bypass, or remote code execution is possible through this vector.

Impact

The CVSS 4.0 score of 6.3 (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N) reflects moderate severity with a narrow exploitable surface. Network reachability and the absence of authentication or user interaction requirements indicate that publicly exposed deserialization endpoints are at risk without needing attacker credentials. However, AC:H (High Complexity) and AT:P (Attack Requirements Present) confirm that exploitation is non-trivial: the attacker must know the application uses union types, understand the MessagePack binary wire format, and construct a valid but deeply nested payload. Impact is strictly limited to availability (VA:L) - no confidentiality or integrity compromise is possible. No EPSS data was supplied in the input, so exploitation probability cannot be quantified numerically. The absence of a CISA KEV listing and any public POC further reduces urgency. This is a real vulnerability warranting patching during a normal release cycle, but it does not represent an emergency for most deployments.

Exploit ScenarioDerived

An attacker identifies a publicly accessible API endpoint that deserializes MessagePack binary data into a .NET type hierarchy that includes [Union]-annotated types. The attacker constructs a crafted binary payload encoding an extremely deep chain of nested union structures, targeting the skip path for unknown union keys where reader.Skip() is called without depth tracking. Submitting this payload causes the DynamicUnionResolver to recurse unbounded until the thread stack is exhausted, crashing the application process or triggering an unhandled StackOverflowException. 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

Uncontrolled recursion in MessagePack for C

allows network-reachable attackers to crash applications by submitting deeply nested union-type payloads that bypass the library's object graph depth protection. DynamicUnionResolver's runtime-generated deserializers omit the required MessagePackSecurity.DepthStep calls, leaving union code paths entirely outside the recursion guard that protects all other formatter paths. No public exploit or active KEV listing exists at time of analysis, but any application deserializing untrusted MessagePack data via union types over a network endpoint is exposed to availability-only impact.

RemediationAI

Upgrade to MessagePack-CSharp 2.5.301 (v2.x branch) or 3.1.7 (v3.x branch), as confirmed by the vendor security advisory at https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-wfr3-xj75-pfwh. If an immediate upgrade is not feasible, the most effective compensating control is to remove or avoid use of types decorated with the [Union] attribute in any deserialization path that processes untrusted input, which eliminates the vulnerable DynamicUnionResolver code path entirely. Alternatively, restrict access to the deserialization endpoint to trusted internal callers via network-layer controls, which limits the attacker surface without changing application behavior. Applications that deserialize MessagePack data exclusively from trusted, internal sources have significantly reduced exposure and may treat this as a routine patch cycle item. No side effects from the patch itself have been noted by the vendor.

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

is a high-performance binary serialization library for .NET. Its DynamicUnionResolver generates IL code at runtime to handle polymorphic deserialization for types decorated with the [Union] attribute. MessagePackSecurity provides a recursive depth-tracking mechanism requiring each formatter to call MessagePackSecurity.DepthStep(ref reader) before recursing and decrement reader.Depth afterward - this mechanism prevents stack exhaustion from deeply nested payloads. The flaw identified under CWE-674 (Uncontrolled Recursion) is that the IL emitted by DynamicUnionResolver omits both the DepthStep call and the Depth decrement, placing the entire union deserialization path outside depth enforcement. For unknown union discriminator keys, the emitted code additionally invokes reader.Skip() on attacker-supplied data with no enclosing depth step, compounding the bypass. The affected CPE is cpe:2.3:a:messagepack-csharp:messagepack-csharp:*:*:*:*:*:*:*:* across all pre-fix releases on both v2 and v3 branches.

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 but requires union-type deserialization path (AC:H); no credentials needed; impact strictly limited to availability via stack exhaustion.

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, runtime-generated union deserializers emitted by DynamicUnionResolver do not call MessagePackSecurity.DepthStep(ref reader) and do not decrement reader.Depth around recursive deserialization and skip paths. This means union deserialization does not consistently participate in the maximum object graph depth enforcement that protects other recursive formatter paths. For unknown union keys, the emitted deserializer calls reader.Skip() on attacker-controlled data without an enclosing depth step. 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 binary serialization library used across enterprise and OSS projects
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
Yes
Human Impact· derived
Medium
Technical Impact
Total

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

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

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