Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach service accepting untrusted MessagePack
-
DeliveryCraft timestamp extension with oversized length
-
ExploitDeliver small payload to deserializer
-
ExecutionUnvalidated size flows to stackalloc slow path
-
PersistStack overflow crashes process
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | Exploitation requires that the target application deserialize attacker-controlled MessagePack input using Nerdbank.MessagePack < 1.1.62 AND that the target deserialization type graph contains a DateTime field or property (the vulnerable code path is DateTime timestamp-extension decoding). The specific trigger is a MessagePack timestamp extension (extension type -1) whose declared extension length is not one of the legal 4/8/12 bytes, combined with an incomplete buffer that routes decoding to the streaming reader slow path where the unvalidated size is used in stackalloc. Limiting factors: applications that never deserialize untrusted MessagePack, or whose untrusted-input types contain no DateTime, are not exploitable; there is no authentication requirement (PR:N) and no user interaction (UI:N). Notably, overall payload size limits do NOT limit exploitation, since the malicious payload is small while declaring a large extension length. |
| Impact | Signals are internally consistent for a genuine but bounded (DoS-only) risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) correctly reflects a network-reachable, low-complexity, unauthenticated availability-only impact - there is no confidentiality or integrity exposure and no code execution, only process termination. EPSS is very low at 0.04% (13th percentile) and the CVE is not in CISA KEV, so there is no evidence of active or widespread exploitation; no public exploit identified at time of analysis. However, low EPSS should not be read as low technical exploitability here: the root cause is fully described and the trigger is a small payload, so weaponization is trivial for a motivated attacker against any service that deserializes untrusted MessagePack into a DateTime-bearing type. The key limiting factor is the application-level precondition (untrusted MessagePack input + DateTime in the type graph), not attacker skill. Priority should scale with exposure: high for internet-facing services that accept untrusted MessagePack, low for closed/trusted-producer pipelines. |
| Exploit ScenarioDerived | An attacker sends a small crafted MessagePack message to a network service (e.g., an API, message-queue consumer, or SignalR endpoint) that deserializes it into a DTO containing a DateTime. The payload encodes a timestamp extension (type -1) declaring a very large length with an incomplete buffer, driving an unbounded stackalloc that raises an uncatchable StackOverflowException and terminates the worker process, causing denial of service. No public exploit code is identified at time of analysis, but the low-complexity, unauthenticated network vector makes it straightforward to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Denial of service in Nerdbank.MessagePack (NuGet, versions < 1.1.62) allows a remote unauthenticated attacker to crash any .NET process that deserializes untrusted MessagePack into a type graph containing a DateTime. A tiny crafted payload declares an oversized timestamp extension length, which is propagated unvalidated into a stackalloc on the streaming reader's slow path, producing an uncatchable StackOverflowException that terminates the process. No public exploit identified at time of analysis and EPSS is very low (0.04%), but the attack is trivial and a vendor patch (1.1.62) is available.
RemediationAI
Vendor-released patch: 1.1.62 - upgrade the Nerdbank.MessagePack NuGet package to 1.1.62 or later, which validates the timestamp extension length before deriving the allocation size (release: https://github.com/AArnott/Nerdbank.MessagePack/releases/tag/v1.1.62; fix in PR https://github.com/AArnott/Nerdbank.MessagePack/pull/941 and commit 7d1eb319cfabe7280e70699946c9a48579fa2f30). If upgrading is not immediately possible, avoid deserializing untrusted MessagePack into type graphs containing DateTime, and pre-validate MessagePack extension headers to reject timestamp (extension type -1) values whose length is not exactly 4, 8, or 12 bytes; note that byte-size limits on the overall payload do NOT mitigate this because a small payload can declare a huge extension length. Alternatively, filter/reject extension type -1 from untrusted producers, restrict deserialization to trusted producers, or run untrusted deserialization in an isolated, restartable process (trade-off: added complexity and latency, and process isolation only contains rather than prevents the crash). Full guidance: https://github.com/AArnott/Nerdbank.MessagePack/security/advisories/GHSA-2cwq-pwfr-wcw3.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in nuget
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nerdbank.MessagePack is a .NET serialization library implementing the MessagePack binary format (CPE pkg:nuget/nerdbank.messagepack). The MessagePack timestamp extension (extension type -1) is spec-defined to carry only 4-, 8-, or 12-byte payloads. The vulnerable code derives an internal tokenSize directly from the attacker-supplied extension length header before validating it against those legal sizes. When the input buffer is incomplete, this unvalidated size flows into the streaming reader's slow path where it is used as the size argument to a C
stackalloc - an unbounded stack allocation. This is a textbook CWE-789 (Uncontrolled Memory Allocation): a length field taken from untrusted input drives an allocation without bounds checking, and because the target is the thread stack rather than the heap, exhaustion raises a StackOverflowException that the CLR does not allow user code to catch.
Know when the next one hits your stack
- 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 attacker sends a small crafted payload (AV:N/AC:L/PR:N/UI:N); only availability is affected via process-terminating crash (C:N/I:N/A:H), consistent with the published 7.5.
Primary rating from Vendor (https://github.com/AArnott/Nerdbank.MessagePack).
CVSS VectorVendor: https://github.com/AArnott/Nerdbank.MessagePack
DescriptionCVE.org
Summary
Nerdbank.MessagePack contains an uncontrolled stack allocation vulnerability in DateTime decoding. A malicious MessagePack payload can declare an oversized timestamp extension length, causing the reader to allocate an attacker-controlled number of bytes on the stack. This can trigger a StackOverflowException, which is not catchable by user code and terminates the process.
Impact
Applications are impacted if they deserialize MessagePack data from untrusted or attacker-controlled sources using Nerdbank.MessagePack and the target type contains a DateTime value.
A small malicious payload can cause process termination, resulting in a denial of service. This may affect services, APIs, workers, message consumers, or other long-running processes that deserialize untrusted MessagePack input.
The issue occurs because DateTime timestamp extension decoding derives tokenSize from the attacker-controlled extension length before validating that the timestamp length is one of the legal MessagePack timestamp sizes: 4, 8, or 12 bytes. When the buffer is incomplete, that unvalidated size is propagated to the streaming reader slow path, where it is used in a stackalloc.
Patches
The 1.1.62 version contains the fix for this security vulnerability.
Workarounds
If upgrading is not yet possible, avoid deserializing untrusted MessagePack payloads into type graphs that may contain DateTime fields or properties.
Input byte-size limits alone may not fully mitigate this issue, because the malicious payload can be small while declaring a very large extension length. Possible mitigations include:
- Pre-validating MessagePack extension headers before deserialization and rejecting timestamp extensions whose length is not 4, 8, or 12 bytes.
- Rejecting or filtering extension type
-1timestamp values from untrusted input unless they are known to be valid. - Running deserialization of untrusted payloads in an isolated process that can be safely restarted after termination.
- Restricting MessagePack deserialization to trusted producers until a patched version is available.
Resources
- CWE-789: Uncontrolled Memory Allocation: https://cwe.mitre.org/data/definitions/789.html
- MessagePack timestamp extension specification: https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type
Executive ViewAI
Organizations using Nerdbank.MessagePack versions before 1.1.62 face immediate denial-of-service risk from unauthenticated remote attackers who can crash .NET applications with a minimal crafted payload. Any system processing MessagePack from external or untrusted sources requires urgent patching to prevent service disruption.
Apply vendor patch.
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.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-30299
GHSA-2cwq-pwfr-wcw3
NVD
CVE.org
EPSS
Exploit-DB