Skip to main content

MessagePack for C# CVE-2026-48506

| EUVDEUVD-2026-38388 HIGH
Uncontrolled Recursion (CWE-674)
2026-06-22 GitHub_M GHSA-vh6j-jc39-fggf
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify endpoint deserializing MessagePack
  2. Delivery
    Craft payload with deeply nested skipped field
  3. Exploit
    Send payload over network
  4. Install
    Formatter invokes reader.Skip()
  5. C2
    TrySkip() recurses past depth guard
  6. Execute
    StackOverflowException terminates process
  7. Impact
    Service denial of availability

Vulnerability Assessment

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

The target application must use MessagePack for C

at a version below 2.5.301 or 3.1.7 and must deserialize MessagePack data originating from an untrusted source. The attacker must be able to deliver a MessagePack payload to that deserializer - typically via any network endpoint, message queue, or stored input that the application reads. Exploitation specifically requires the payload to contain deep nesting at a position the formatter will skip (unknown map keys, unknown array members, ignored fields, or forward-compatibility padding), which is the default behavior for both generated and dynamic formatters, so no special server configuration is required. There is no authentication or user-interaction requirement (PR:N/UI:N) and the documented MaximumObjectGraphDepth setting does NOT limit exploitation because the vulnerable TrySkip() path bypasses it.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5 High) is consistent with the description: a single crafted MessagePack blob delivered over any input channel kills the receiving process with no authentication or user interaction. No EPSS, KEV, or POC data was supplied in the input, so exploitation status is best characterized as no public exploit identified at time of analysis; this is a pure availability issue, not RCE, which lowers urgency relative to high-CVSS code-execution bugs. Real-world risk hinges on exposure of the deserializer to untrusted input - internet-facing services using MessagePack are high priority, while internal-only or trusted-peer deployments are lower priority. Confidence is high that the bug exists as described because the vendor's own GHSA advisory is the source.

Exploit ScenarioDerived

An attacker sends a single MessagePack-encoded payload containing a deeply nested array or map at any position the server will skip - an unknown field, an ignored member, or a forward-compatibility tail - to any endpoint that deserializes MessagePack from untrusted input, such as a gRPC-like RPC server, a cache layer, or a Unity game backend. When the generated formatter invokes reader.Skip() on the nested value, recursion blows the managed stack and raises an uncatchable StackOverflowException that terminates the host process, achieving denial of service with no authentication, no user interaction, and a minimal payload.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

Denial of service in MessagePack for C

versions prior to 2.5.301 and 3.1.7 allows remote attackers to crash applications by sending deeply nested MessagePack payloads that trigger uncatchable StackOverflowException via MessagePackReader.TrySkip(). The flaw bypasses the library's own MaximumObjectGraphDepth safeguard because TrySkip() recurses into nested structures without incrementing the depth counter, making any application that deserializes untrusted MessagePack data exploitable. No public exploit identified at time of analysis, but the bug is straightforward to trigger and fixes are already published upstream.

RemediationAI

Vendor-released patch: upgrade to MessagePack for C

2.5.301 (2.x branch) or 3.1.7 (3.x branch) as documented in advisory GHSA-vh6j-jc39-fggf at https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-vh6j-jc39-fggf. As a compensating control until packages can be updated, terminate untrusted MessagePack input at a boundary that enforces a hard byte-size cap and reject payloads above a conservative limit (for example a few hundred KB), since pathological nesting requires only a tiny amount of bytes per level and length limits sharply reduce achievable depth; note this does not fully eliminate the risk because deep nesting is byte-cheap. Additionally, host the deserializer in a process that can be quickly restarted (supervisord, Kubernetes liveness probe, IIS recycling) so a triggered StackOverflowException causes service blip rather than outage; this does not prevent the DoS, only shortens it. Setting MessagePackSecurity.MaximumObjectGraphDepth alone is NOT a workaround because the bug specifically bypasses that check.

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

(messagepack-csharp) is a high-performance binary serializer widely used in .NET applications, Unity games, and gRPC-style RPC frameworks. The defect is rooted in CWE-674 (Uncontrolled Recursion): MessagePackReader.TrySkip() walks nested arrays and maps recursively on the managed call stack but does not call the configured depth checks, so MessagePackSecurity.MaximumObjectGraphDepth - the documented defense against hostile object graphs - is silently bypassed. Because generated and dynamic formatters routinely invoke reader.Skip() for unknown keys, ignored fields, and forward-compatibility padding, the unsafe path is reached during normal deserialization of any schema that tolerates unknown fields. A StackOverflowException in .NET cannot be caught and immediately terminates the process, turning the issue into a reliable DoS primitive against the affected CPE cpe:2.3:a:messagepack-csharp:messagepack-csharp.

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 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated payload to any MessagePack deserializer with no UI; impact is pure availability via uncatchable StackOverflowException, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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, MessagePackReader.TrySkip() recursively descends into nested arrays and maps without incrementing the reader depth or calling the configured depth checks. This bypasses MessagePackSecurity.MaximumObjectGraphDepth, the library's documented protection against deeply nested object graphs. Many generated and dynamic formatters call reader.Skip() when they encounter unknown map keys, unknown array members, ignored fields, or data that should be skipped for forward compatibility. A deeply nested value in one of these skipped positions can therefore cause unbounded recursion and an uncatchable StackOverflowException. This vulnerability is fixed in 2.5.301 and 3.1.7.

Executive ViewAI

Why It Matters

MessagePack for C

(versions prior to 2.5.301 and 3.1.7) contains a denial-of-service vulnerability allowing remote attackers to crash applications by sending specially crafted nested payloads, creating immediate risk of application downtime for any organization that deserializes untrusted MessagePack data. The vulnerability bypasses the library's built-in depth-checking safeguard, making exploitation straightforward and requiring no special privileges. Patched versions are available and should be deployed immediately.

Business Impact: High
Compensating Controls

Vendor-released patch: versions 2.5.301 and 3.1.7. As interim mitigations, restrict network access to services receiving MessagePack data from untrusted sources and implement input validation and filtering where operationally feasible.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular .NET/Unity serializer, common but not universal across stacks
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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