Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify .NET service accepting MessagePack input
-
DeliveryCraft tiny timestamp extension with huge declared length
-
ExploitSend payload to deserialization endpoint
-
ExecutionTrigger oversized stackalloc in ReadDateTime
-
PersistExhaust thread stack
-
ImpactUncatchable StackOverflowException terminates host process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target .NET application deserializes attacker-controlled MessagePack input using MessagePack-CSharp prior to 2.5.301 or 3.1.7, and that the deserialization path actually reaches the timestamp extension slow path inside MessagePackReader.ReadDateTime() - this typically means the application accepts MessagePack payloads with arbitrary extension types (rather than a strictly typed schema that excludes timestamps) or explicitly reads DateTime values. No authentication or user interaction is required (PR:N/UI:N), but the AT:P attack requirement in the CVSS 4.0 vector reflects the need for the consumer to invoke the vulnerable code path on attacker data. Limiting factors: AC:H reflects the need for the specific timestamp slow-path branch; applications that never parse MessagePack timestamps or that gate input by upstream schema validation are not exploitable. |
| Impact | The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) indicates network-reachable, unauthenticated exploitation but with high attack complexity and a present attack requirement, suggesting non-trivial preconditions such as the application actually invoking ReadDateTime on attacker-controlled input. Only availability is impacted (VA:H) - there is no confidentiality or integrity loss - yet the impact is severe because StackOverflowException in .NET is uncatchable and terminates the host process, making this a reliable single-packet DoS against any service that deserializes untrusted MessagePack. No KEV listing and no public exploit identified at time of analysis, and no EPSS score was provided in the input, so widespread opportunistic exploitation appears unlikely; however, the trivially small malicious payload and ubiquity of MessagePack in .NET service stacks make this a real priority for any externally exposed deserialization endpoint. The CWE-125 (out-of-bounds read) classification is somewhat inconsistent with the described stack-exhaustion behavior - defenders should treat this as a DoS issue rather than a memory-disclosure issue. |
| Exploit ScenarioDerived | An attacker sends a single small MessagePack payload to a network-exposed .NET service (REST/gRPC/WebSocket/game server) that deserializes user-supplied data with MessagePack-CSharp, embedding a timestamp extension header that declares a huge body length but contains almost no data. When the service calls MessagePackReader.ReadDateTime(), the unvalidated length feeds into stackalloc, the thread stack is exhausted, and the host process terminates with an uncatchable StackOverflowException - a one-packet denial of service. No public exploit identified at time of analysis, though the bug is straightforward to weaponize from the advisory text. |
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 terminate host processes by sending a crafted MessagePack timestamp extension payload that triggers an uncatchable StackOverflowException. The flaw stems from a stackalloc operation using an attacker-controlled extension length before validation, enabling a tiny payload to claim a massive stack allocation. No public exploit identified at time of analysis, and CVSS 4.0 of 8.2 reflects high availability impact with attack complexity requirements.
RemediationAI
Vendor-released patch: upgrade to MessagePack-CSharp 2.5.301 (2.x users) or 3.1.7 (3.x users) as documented in advisory GHSA-382j-8mxh-c7x2 (https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-382j-8mxh-c7x2). If immediate upgrade is not possible, restrict or reject MessagePack input from untrusted sources at the network or application boundary, enforce a strict maximum payload size on incoming MessagePack messages (which limits the attacker's ability to claim large extension bodies even before parsing), or wrap deserialization in a separate worker process that can be restarted on crash - trade-offs include latency overhead for the worker isolation approach and the fact that size limits do not strictly prevent the issue since the extension-length field is what is abused rather than total payload size. Disabling timestamp extension parsing is not an exposed configuration option, so patching is strongly preferred.
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
is a high-performance binary serializer widely used in .NET applications, games (Unity), and microservices for compact data interchange. The vulnerability lives in MessagePackReader.ReadDateTime() inside the slow path for timestamp extension parsing: the routine computes tokenSize from the on-wire extension body length and passes it directly to a stackalloc call before checking that the length matches one of the valid timestamp sizes (4, 8, or 12 bytes per the MessagePack timestamp extension spec). CWE-125 (out-of-bounds read) is the assigned weakness class, though the realized impact is actually an unbounded stack allocation that overruns the thread's stack - a stack-based resource exhaustion that .NET cannot catch, immediately terminating the entire process.
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:H/SC:N/SI:N/SA:N
Network-reachable unauthenticated DoS; AC:H because the consumer must invoke the timestamp slow path on attacker data; only availability impacted.
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.ReadDateTime() can allocate stack memory based on an attacker-controlled MessagePack extension length. In the slow path for timestamp extension parsing, the computed tokenSize includes the extension body length from the wire and is used in a stackalloc operation before the extension length is validated as one of the valid timestamp sizes. A very small payload can claim a large timestamp extension body and cause a stack allocation large enough to trigger an uncatchable StackOverflowException, terminating the host process. 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 contain a remote denial of service vulnerability that enables process termination. No public exploit has been identified, but organizations using affected versions face immediate availability risk.
Restrict network access to services accepting MessagePack input from untrusted sources; implement strict payload size validation; disable timestamp extension type handling; apply defense-in-depth input validation; consider migrating to alternative serialization formats; maintain upgrade readiness for rapid patch deployment.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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 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-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-38389
GHSA-382j-8mxh-c7x2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB