Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target endpoint accepting MessagePack typeless input
-
DeliveryCraft payload wrapping blocked type in array or generic container
-
ExploitSubmit payload over network (PR:N, AV:N)
-
ExecutionOuter type check passes without recursive inspection
-
PersistFormatter materializes inner blocked type via reflection
-
ImpactTrigger 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Network-reachable but requires typeless deserialization mode and attacker-controlled payload (AC:H); no scope change; integrity-only impact per advisory.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
More in Messagepack Csharp
View allDenial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to terminate host pr
Denial of service in MessagePack for C# versions prior to 2.5.301 and 3.1.7 allows remote attackers to crash application
Insecure default initialization in MessagePack for C#'s ASP.NET Core MVC formatter exposes .NET web applications to hash
LZ4 decompression in MessagePack for C# prior to versions 2.5.301 (v2 branch) and 3.1.7 (v3 branch) allows remote attack
Quadratic CPU and memory allocation behavior in MessagePack-CSharp's ExpandoObjectFormatter enables remote unauthenticat
Uncontrolled recursion in MessagePack-CSharp's JSON conversion helpers allows remote attackers to crash .NET host proces
Uncontrolled recursion in MessagePack for C# allows network-reachable attackers to crash applications by submitting deep
Unchecked large-array allocation in MessagePack for C# exposes any .NET application deserializing untrusted MessagePack
Heap exhaustion via crafted multi-dimensional array payloads in MessagePack-CSharp affects all v2.x releases before 2.5.
CPU denial of service in MessagePack for C# affects applications deserializing ILookup<TKey,TElement> types from untrust
Denial of service in MessagePack-CSharp occurs when an application deserializes attacker-controlled MessagePack data int
EUVD-2026-38363
GHSA-qhmf-xw27-6rqr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB