Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach network-exposed MessagePack endpoint
-
DeliveryCraft extension payload with oversized byteLength field
-
ExploitSubmit payload to UnsafeBlitFormatterBase<T> deserializer
-
ExecutionTrigger pre-validation T[] allocation from attacker-controlled size
-
PersistExhaust process or system memory
-
ImpactCause denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerable code path is only reached when the application explicitly uses UnsafeBlitFormatterBase<T> (or a formatter derived from it) to deserialize a MessagePack extension-type field - this is not triggered by standard primitive or POCO deserialization. The attacker must be able to deliver a crafted MessagePack binary payload to a deserialization call that processes extension types via this formatter, whether over HTTP, WebSocket, gRPC, or another transport. The CVSS 4.0 metrics AC:H and AT:P confirm that exploitation is conditioned on a specific target configuration rather than being universally applicable. No authentication is required (PR:N), and no user interaction is needed (UI:N). Exploitation is constrained by: (1) use of UnsafeBlitFormatterBase<T> for specific types, which is an opt-in pattern rather than the default; (2) attacker ability to reach the deserialization endpoint with arbitrary MessagePack extension payloads; and (3) the impact ceiling of availability-only (no code execution, no data exfiltration). |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N) scores 6.3 (Medium). Key signals: AV:N confirms the attack is network-reachable, but AC:H and AT:P together indicate that exploitation is not trivial - the target application must specifically be using UnsafeBlitFormatterBase<T> to deserialize attacker-controlled extension payloads, which is not the default formatter for most types. PR:N means no credentials are needed once the attacker reaches an exposed endpoint. Impact is strictly availability (VA:L, denial of service via memory pressure), with no confidentiality or integrity impact, which significantly limits blast radius. No EPSS data was supplied, no CISA KEV listing exists, and no public proof-of-concept is known at time of analysis. Taken together, this is a genuine but bounded risk: high priority for applications that accept untrusted MessagePack extension-type data over the network, lower priority for applications that only deserialize internally generated or authenticated payloads. |
| Exploit ScenarioDerived | An attacker sends a crafted MessagePack extension payload to a network-accessible .NET service that deserializes untrusted data using UnsafeBlitFormatterBase<T>. The payload contains a very small outer extension body but embeds a byteLength value set to, for example, 500 MB; the deserializer allocates a T[] of that size before discovering there are only a few bytes of actual input, spiking process memory. Repeated or concurrent requests amplify the effect, potentially causing out-of-memory crashes or severe latency on the target service. No public exploit code is known at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Unchecked large-array allocation in MessagePack for C
exposes any .NET application deserializing untrusted MessagePack extension payloads to a denial-of-service condition. The UnsafeBlitFormatterBase<T>.Deserialize method trusts an attacker-supplied byteLength field from the inner extension payload and allocates a T[] array of that size before comparing it against the outer extension header length or remaining input bytes, meaning a few-byte payload can trigger gigabyte-scale allocations. No active exploitation has been confirmed (no CISA KEV listing, no public exploit identified at time of analysis), but the attack requires no authentication and no user interaction, lowering the bar for any attacker with network access to an exposed endpoint.
RemediationAI
The vendor-released patches are version 2.5.301 (for 2.x users) and version 3.1.7 (for 3.x users); upgrade to the appropriate patched release as the primary remediation. If an immediate upgrade is not feasible, the most effective compensating control is to ensure that any endpoint accepting MessagePack data from untrusted sources enforces a maximum request body size at the network or application framework layer (e.g., ASP.NET Core's MaxRequestBodySize or equivalent), which limits the number of allocation attempts an attacker can trigger per connection. Additionally, restricting access to MessagePack deserialization endpoints to authenticated or network-allowlisted clients reduces exposure, though the CVSS PR:N rating means this is a workaround rather than a fix. Note that the vulnerability is specific to types using UnsafeBlitFormatterBase<T>, so auditing which types in your application use this formatter can help scope risk. Full advisory and patch references: https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-w567-gjr2-hm5j.
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 is a compact binary serialization format, and MessagePack for C
is the canonical .NET implementation used heavily in Unity game development, ASP.NET microservices, and high-performance RPC frameworks. The affected code path, UnsafeBlitFormatterBase<T>, is a performance-optimized formatter that uses unsafe memory operations to deserialize blittable structs directly. The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling): the deserializer reads a byteLength value controlled by the serialized payload and immediately passes it to array allocation logic without first clamping it to the number of bytes actually available in the input stream. The outer MessagePack extension header is correctly bounded by the input buffer, but that bound is never propagated inward to constrain the byteLength read from the extension body, creating a trivially triggerable amplification between payload size and allocated memory. Affected products are identified via 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:N/VA:L/SC:N/SI:N/SA:N
Network-reachable with no auth needed, but AC:H because only specific UnsafeBlitFormatter usage triggers it; impact is availability-only via memory exhaustion.
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, UnsafeBlitFormatterBase<T>.Deserialize reads an attacker-controlled byteLength from an extension payload and allocates an array based on that value before validating it against the extension header length or remaining payload bytes. The outer extension header is bounded by available input, but that bound is not used to constrain the inner byteLength before allocation. A very small payload can therefore request a very large T[] allocation. 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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
Typeless deserialization in MessagePack-CSharp allows blocked types to be instantiated by wrapping them inside arrays or
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
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-38382
GHSA-w567-gjr2-hm5j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB