Skip to main content

MessagePack for C# CVE-2026-48502

| EUVDEUVD-2026-38389 HIGH
Out-of-bounds Read (CWE-125)
2026-06-22 GitHub_M GHSA-382j-8mxh-c7x2
8.2
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify .NET service accepting MessagePack input
  2. Delivery
    Craft tiny timestamp extension with huge declared length
  3. Exploit
    Send payload to deserialization endpoint
  4. Execution
    Trigger oversized stackalloc in ReadDateTime
  5. Persist
    Exhaust thread stack
  6. Impact
    Uncatchable 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.

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

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

Alert me

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

MessagePack-CSharp < 2.5.301
MessagePack-CSharp 3.1.7, < 3.1.7

Affected Packages

nuget messagepack fix: 3.1.7
euvd messagepack_csharp fix: 2.5.301, 3.1.7

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

Vendor (GitHub_M) PRIMARY 8.2 HIGH
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
vuln.today AI 5.9 MEDIUM

Network-reachable unauthenticated DoS; AC:H because the consumer must invoke the timestamp slow path on attacker data; only availability impacted.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 22, 2026 - 23:02 EUVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
High
widely used .NET/Unity serialization library across services and games
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.2%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

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.

CVE-2026-48506 HIGH POC
7.5 Jun 22

Denial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to crash application

CVE-2026-48517 MEDIUM
6.3 Jun 22

Typeless deserialization in MessagePack-CSharp allows blocked types to be instantiated by wrapping them inside arrays or

CVE-2026-48509 MEDIUM
6.3 Jun 22

Insecure default initialization in MessagePack for C#'s ASP.NET Core MVC formatter exposes .NET web applications to hash

CVE-2026-48510 MEDIUM
6.3 Jun 22

LZ4 decompression in MessagePack for C# prior to versions 2.5.301 (v2 branch) and 3.1.7 (v3 branch) allows remote attack

CVE-2026-48511 MEDIUM
6.3 Jun 22

Quadratic CPU and memory allocation behavior in MessagePack-CSharp's ExpandoObjectFormatter enables remote unauthenticat

CVE-2026-48512 MEDIUM
6.3 Jun 22

Uncontrolled recursion in MessagePack-CSharp's JSON conversion helpers allows remote attackers to crash .NET host proces

CVE-2026-48513 MEDIUM
6.3 Jun 22

Uncontrolled recursion in MessagePack for C# allows network-reachable attackers to crash applications by submitting deep

CVE-2026-48514 MEDIUM
6.3 Jun 22

Unchecked large-array allocation in MessagePack for C# exposes any .NET application deserializing untrusted MessagePack

CVE-2026-48515 MEDIUM
6.3 Jun 22

Heap exhaustion via crafted multi-dimensional array payloads in MessagePack-CSharp affects all v2.x releases before 2.5.

CVE-2026-48516 MEDIUM
6.3 Jun 22

CPU denial of service in MessagePack for C# affects applications deserializing ILookup<TKey,TElement> types from untrust

CVE-2026-92707 MEDIUM
5.3 Oct 15

Denial of service in MessagePack-CSharp occurs when an application deserializes attacker-controlled MessagePack data int

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