Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify service endpoint accepting JSON for MessagePack conversion
-
DeliveryCraft deeply nested JSON or long separator-run payload
-
ExploitSubmit payload to ConvertFromJson, ConvertToJson (ext-100), or TinyJsonReader path
-
InstallTrigger unguarded recursion bypassing MaximumObjectGraphDepth
-
C2Exhaust .NET thread stack
-
ExecuteUncatchable StackOverflowException crashes host process
-
ImpactService unavailable (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires the target application to actively use one of three specific JSON conversion APIs: MessagePackSerializer.ConvertFromJson (which calls FromJsonCore()), MessagePackSerializer.ConvertToJson when processing MessagePack ext-100 (typeless) payloads, or TinyJsonReader.ReadNextToken() directly. Standard typed MessagePack deserialization - the primary and most common use of the library - is not affected by this vulnerability. The TinyJsonReader path is the most accessible attack surface because it can be triggered with malformed JSON (not structurally valid nested payloads), consuming one stack frame per comma or colon character. Exploitation is further limited by the AC:H and AT:P conditions: the application must expose a code path where attacker input transits these conversion functions without prior structural validation. Applications that validate or size-limit JSON input upstream of these calls reduce but do not eliminate risk due to the separator-character recursion path. |
| Impact | The vendor-provided CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L) scores 6.3 (Medium), reflecting a network-reachable path with high complexity and additional prerequisites. The AT:P condition is the key limiting signal: exploitation requires the target application to be using the JSON conversion helpers and passing attacker-controlled content through them - the far more common typed MessagePack deserialization path is not affected. No EPSS data was present in the input, no CISA KEV listing exists, and no public exploit code has been identified, all of which lower urgency relative to the raw CVSS score. The impact is availability-only (no confidentiality or integrity risk), and the affected .NET process, not the host OS, is the blast radius. Independent assessment places the process-level crash at VA:H rather than the vendor's VA:L, since an uncatchable StackOverflowException terminates the process entirely. The most actionable signal is deployment context: teams running .NET services that accept untrusted JSON and route it through MessagePack-CSharp's conversion helpers should treat this as high priority; teams using only typed MessagePack serialization are unaffected. |
| Exploit ScenarioDerived | An attacker sends an HTTP request containing either a deeply nested JSON array/object payload or a syntactically malformed JSON string with thousands of consecutive comma or colon characters to a .NET service that uses MessagePack-CSharp's ConvertFromJson API. The service passes the raw input to FromJsonCore() or TinyJsonReader.ReadNextToken(), which recurses without a depth bound, exhausting the thread stack and triggering an uncatchable StackOverflowException that terminates the host process, taking down the service for all users. No prior authentication or privileged access is required if the endpoint is publicly reachable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Uncontrolled recursion in MessagePack-CSharp's JSON conversion helpers allows remote attackers to crash .NET host processes via an uncatchable StackOverflowException, producing a denial-of-service condition in applications that route untrusted input through these APIs. Three independent recursive code paths - ConvertFromJson's FromJsonCore(), TinyJsonReader.ReadNextToken() (which recurses once per comma or colon character, enabling exploitation via malformed JSON), and the ConvertToJson ext-100 typeless extension branch - all bypass the library's existing MessagePackSecurity depth-limit enforcement. No public exploit has been identified at time of analysis, and only applications explicitly using the JSON conversion helpers (not normal typed MessagePack deserialization) are exposed.
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-cj9g-3mj2-g8vv. These releases patch all three recursive code paths by consistently applying MessagePackSecurity.MaximumObjectGraphDepth and DepthStep() checks. If an immediate upgrade is not feasible, the most effective compensating control is to audit all call sites for ConvertFromJson, ConvertToJson, and any direct use of TinyJsonReader, and ensure no attacker-controlled data reaches these methods - route untrusted input through typed MessagePack deserialization instead. Adding application-level input size or nesting-depth validation before these calls can reduce risk, but cannot fully prevent exploitation via the separator-recursion path in TinyJsonReader since it exploits character counts rather than structural depth. Migrating away from the JSON conversion helpers for untrusted input is preferable to relying on input filtering as a long-term control.
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-CSharp (CPE: cpe:2.3:a:messagepack-csharp:messagepack-csharp:*:*:*:*:*:*:*:*) is a high-performance MessagePack serializer for .NET/C#, widely used in Unity game clients and .NET microservices. CWE-674 (Uncontrolled Recursion) describes the root cause: the library exposes a JSON conversion subsystem (ConvertFromJson, ConvertToJson, TinyJsonReader) that is architecturally separate from its primary typed deserialization path. The library already implements a depth-guard mechanism via MessagePackSecurity.MaximumObjectGraphDepth and the DepthStep(ref reader) call pattern, but these three JSON conversion code paths inconsistently apply - or entirely skip - those guards. Because .NET's CLR terminates the process immediately on stack exhaustion without allowing catch handlers to intercept, a StackOverflowException cannot be caught at the application layer, making any compensating try/catch logic ineffective as a workaround.
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
High complexity because specific JSON conversion APIs must be exposed to untrusted input; uncatchable process crash warrants A:H, not Low.
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, MessagePack-CSharp's JSON conversion helpers contain multiple recursion paths that do not consistently enforce a depth limit. These paths are in the JSON conversion component rather than normal typed MessagePack deserialization. MessagePackSerializer.ConvertFromJson recursively processes nested JSON arrays and objects in FromJsonCore() without consulting MessagePackSecurity.MaximumObjectGraphDepth. TinyJsonReader.ReadNextToken() recursively consumes comma and colon separator characters, allowing even malformed JSON with long separator runs to consume one stack frame per character. MessagePackSerializer.ConvertToJson applies depth checks to arrays and maps, but the typeless extension branch for ext-100 recursively calls ToJsonCore() without applying MessagePackSecurity.DepthStep(ref reader). Each path can allow attacker-controlled input to exhaust the process stack and trigger an uncatchable StackOverflowException instead of failing with a catchable parse or serialization exception. 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
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.
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 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.
CPU denial of service in MessagePack for C# affects applications deserializing ILookup<TKey,TElement> types from untrust
Denial of service in MessagePack-CSharp occurs when an application deserializes attacker-controlled MessagePack data int
EUVD-2026-38384
GHSA-cj9g-3mj2-g8vv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB