Skip to main content

MessagePack-CSharp EUVDEUVD-2026-38382

| CVE-2026-48514 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-06-22 GitHub_M GHSA-w567-gjr2-hm5j
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
    Reach network-exposed MessagePack endpoint
  2. Delivery
    Craft extension payload with oversized byteLength field
  3. Exploit
    Submit payload to UnsafeBlitFormatterBase<T> deserializer
  4. Execution
    Trigger pre-validation T[] allocation from attacker-controlled size
  5. Persist
    Exhaust process or system memory
  6. Impact
    Cause 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

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

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

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

Network-reachable with no auth needed, but AC:H because only specific UnsafeBlitFormatter usage triggers it; impact is availability-only via memory exhaustion.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/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
Low
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, 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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
popular .NET serialization library, widely used in Unity and high-performance services
Threat Intel
1
1 source
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.2%
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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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