Skip to main content

MessagePack-CSharp EUVDEUVD-2026-38363

| CVE-2026-48517 MEDIUM
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-06-22 GitHub_M GHSA-qhmf-xw27-6rqr
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify target endpoint accepting MessagePack typeless input
  2. Delivery
    Craft payload wrapping blocked type in array or generic container
  3. Exploit
    Submit payload over network (PR:N, AV:N)
  4. Execution
    Outer type check passes without recursive inspection
  5. Persist
    Formatter materializes inner blocked type via reflection
  6. Impact
    Trigger gadget chain for integrity violation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
Exploitation Conditions

The application must be using MessagePack-CSharp's typeless deserialization mode - standard typed deserialization is not affected. The attacker must be able to supply a malicious MessagePack payload that reaches the typeless deserializer, such as via an unauthenticated or authenticated network API, a message queue consumer, or a file upload endpoint that processes MessagePack data. The CVSS 4.0 AT:P metric (Attack Requirements Present) confirms that a specific runtime precondition - typeless deserialization being active - must exist. Exploitation is further constrained by AC:H, meaning the attacker must craft a payload that correctly triggers the array or generic type wrapping bypass. Applications using only typed deserialization, or those where serialized input is not attacker-influenced, are not exploitable. The CVSS PR:N metric indicates no authentication is required from the attacker's perspective, but network reachability to the deserialization endpoint is mandatory.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N) scores 6.3 and signals a network-reachable vulnerability with meaningful exploitation prerequisites. AC:H and AT:P together indicate that exploitation is non-trivial: the target application must specifically employ typeless deserialization and the attacker must control the deserialized payload. The CVSS integrity impact (VI:L) appears conservative for a deserialization gadget-chain bypass - in practice, the actual severity depends heavily on which .NET types are available as gadgets in the target environment, a factor that cannot be assessed from available data alone. No KEV listing and no public exploit code exist at time of analysis, consistent with the high complexity rating. EPSS data was not provided. The practical risk is elevated for applications that accept MessagePack typeless payloads from untrusted sources (APIs, message queues, file uploads), and substantially lower for applications that use typed deserialization only. The conservative CVSS impact metrics may understate risk in gadget-rich .NET environments - security teams should not rely solely on the base score.

Exploit ScenarioDerived

An attacker sends a crafted MessagePack binary payload to a network endpoint that invokes typeless deserialization, embedding a blocklisted .NET type wrapped inside an array or generic container such as List<BlockedType>. The outer type check passes, the library materializes a formatter for the inner blocked type, and the type is instantiated - potentially triggering a .NET gadget chain that achieves an integrity violation or further exploitation depending on available types in the runtime environment. No public exploit code has been identified at time of analysis, but the bypass technique is structurally similar to well-documented .NET deserialization gadget-chain attacks.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 22, 2026

Typeless deserialization in MessagePack-CSharp allows blocked types to be instantiated by wrapping them inside arrays or generic type constructs, bypassing the ThrowIfDeserializingTypeIsDisallowed safety check. Applications using typeless deserialization on MessagePack-CSharp prior to versions 2.5.301 (2.x branch) and 3.1.7 (3.x branch) are exposed. No public exploit code or active exploitation has been identified at time of analysis; the CVSS 4.0 score of 6.3 reflects high attack complexity and the prerequisite that typeless deserialization must be enabled and attacker-controlled input must reach the deserializer.

RemediationAI

Vendor-released patches are available: upgrade to MessagePack-CSharp 2.5.301 (for 2.x users) or 3.1.7 (for 3.x users). Both fix versions are confirmed by the vendor in GitHub Security Advisory GHSA-qhmf-xw27-6rqr at https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-qhmf-xw27-6rqr. If immediate patching is not possible, the most effective compensating control is to disable typeless deserialization entirely and migrate to typed deserialization, which does not rely on ThrowIfDeserializingTypeIsDisallowed and avoids the vulnerability class altogether - though this requires application-level refactoring. Alternatively, restricting MessagePack deserialization endpoints to authenticated, trusted callers reduces the network attack surface, but does not eliminate the vulnerability. Input validation at the serialized payload boundary is not a reliable mitigation given the recursive type-wrapping nature of the bypass.

Affected VersionsENISA

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

Affected Packages

nuget messagepack fix: 2.5.301, 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-CSharp is a .NET implementation of the MessagePack binary serialization format, widely used in Unity game development, ASP.NET microservices, and high-performance .NET applications. The vulnerability resides in the typeless deserialization path, where serialized data carries embedded type names that the library resolves at runtime - analogous to BinaryFormatter-style deserialization risks. The safety guard ThrowIfDeserializingTypeIsDisallowed(Type) performs a blocklist check on the outer resolved type name but fails to recurse into array element types or generic type arguments (e.g., List<BlockedType> or BlockedType[]). The formatter machinery subsequently materializes formatters for these unscrutinized inner types, effectively instantiating types the blocklist was designed to prevent. CWE-470 (Use of Externally-Controlled Input to Choose Classes or Code) captures the root cause: attacker-supplied type names from the payload drive class instantiation via reflection, and the incomplete blocklist traversal is the exploitable gap. Affected CPE: cpe:2.3:a:messagepack-csharp:messagepack-csharp:*:*:*:*:*:*:*:*.

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 6.3 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Network-reachable but requires typeless deserialization mode and attacker-controlled payload (AC:H); no scope change; integrity-only impact per advisory.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/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
Low
Vulnerable system: Availability
None
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, MessagePack-CSharp's typeless deserialization includes MessagePackSerializerOptions.ThrowIfDeserializingTypeIsDisallowed(Type) as a safety check for dangerous types. The default implementation checks the outer type name, but it does not recursively inspect array element types or generic type arguments. As a result, a type that would be blocked directly can be wrapped inside an array or constructed generic type and pass the outer type check. The formatter machinery can then materialize formatters for the inner blocked type. This vulnerability is fixed in 2.5.301 and 3.1.7.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
popular high-performance serialization library in .NET and Unity ecosystems
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

CVE-2026-48502 HIGH
8.2 Jun 22

Denial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to terminate host pr

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