Loading advisory.
Loading advisory.
Nerdbank.MessagePack: Attacker-controlled stackalloc in DateTime decoding causes process-terminating StackOverflowException
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.
Published 2026-05-06 23:05 UTC · Modified 2026-05-14 21:04 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| Nerdbank.MessagePack | NuGet | < 1.1.62 versions 0.1.705-alpha-gad428877b7, 0.1.734-alpha-g09268fd45c, 0.10.2-rc, 0.10.7-rc, 0.2.108-alpha, 0.2.2-alpha, 0.2.34-alpha, 0.2.52-alpha, 0.2.82-alpha, 0.3.120-beta, 0.3.151-beta, 0.3.161-beta, 0.3.2-alpha, 0.3.27-alpha, 0.3.38-beta, 0.4.5-beta, 0.5.1-beta, 0.5.37-beta, 0.5.57-beta, 0.5.72-beta and 27 more | 1.1.62 | dotnet add package Nerdbank.MessagePack --version 1.1.62 |
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.
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.
The 1.1.62 version contains the fix for this security vulnerability.
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 -1 timestamp 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.
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
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.006 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.004 | v2026.06.15 |