Skip to main content

Nerdbank.MessagePack CVE-2026-44375

| EUVDEUVD-2026-30299 HIGH
Memory Allocation with Excessive Size Value (CWE-789)
2026-05-06 https://github.com/AArnott/Nerdbank.MessagePack GHSA-2cwq-pwfr-wcw3
7.5
CVSS 3.1 · Vendor: https://github.com/AArnott/Nerdbank.MessagePack
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach service accepting untrusted MessagePack
  2. Delivery
    Craft timestamp extension with oversized length
  3. Exploit
    Deliver small payload to deserializer
  4. Execution
    Unvalidated size flows to stackalloc slow path
  5. Persist
    Stack overflow crashes process
  6. Impact
    Denial 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Nerdbank.MessagePack < 1.1.62

Affected Packages

nuget nerdbank.messagepack fix: 1.1.62

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

Vendor (https://github.com/AArnott/Nerdbank.MessagePack) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/AArnott/Nerdbank.MessagePack).

CVSS VectorVendor: https://github.com/AArnott/Nerdbank.MessagePack

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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 -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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Prevalence
Low
niche .NET MessagePack serializer, far smaller footprint than mainstream MessagePack libraries
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy