Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify endpoint deserializing MessagePack
-
DeliveryCraft payload with deeply nested skipped field
-
ExploitSend payload over network
-
InstallFormatter invokes reader.Skip()
-
C2TrySkip() recurses past depth guard
-
ExecuteStackOverflowException terminates process
-
ImpactService 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Remote unauthenticated payload to any MessagePack deserializer with no UI; impact is pure availability via uncatchable StackOverflowException, so C:N/I:N/A:H.
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, 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
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.
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
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
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.
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
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-CSharp's JSON conversion helpers allows remote attackers to crash .NET host proces
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-38388
GHSA-vh6j-jc39-fggf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB