Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 84%

MessagePack-CSharp: Typeless deserialization type restrictions do not recurse into arrays or generic arguments (CVE-2026-48517)

0
Medium
Published: 06/25/2026 (06/25/2026, 21:31:13 UTC)
Source: GCVE Database
Product: MessagePack

Description

MessagePack-CSharp's typeless deserialization feature has a vulnerability where type restrictions do not recursively inspect array element types or generic type arguments. This allows an attacker to bypass outer-type blocklist checks by wrapping disallowed types inside arrays or generic containers. The issue affects applications that deserialize untrusted data using typeless serialization APIs. Fixes are available in versions 2.5.301 and 3.1.7. Users are advised to upgrade and avoid typeless deserialization of untrusted data or use explicit recursive allowlists.

CVSS v4.0

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

NuGetghsa
MessagePack
Affected versions
<2.5.301
NuGetghsa
MessagePack
Affected versions
>=3.0 <3.1.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/26/2026, 22:52:50 UTC

Technical Analysis

The vulnerability in MessagePack-CSharp involves the typeless deserialization safety check implemented by MessagePackSerializerOptions.ThrowIfDeserializingTypeIsDisallowed(Type). The check only inspects the outer type and does not recursively verify nested array element types or generic type arguments. Consequently, disallowed types can be embedded inside arrays or generic types and bypass the blocklist, allowing the formatter to instantiate these inner types. This weakens the intended mitigation against dangerous types during typeless deserialization. The vulnerability affects typeless deserialization features such as MessagePackSerializer.Typeless and TypelessObjectResolver. The issue is fixed in versions 2.5.301 and 3.1.7 by applying recursive type-disallow checks to nested types including arrays, pointers, nullable types, and generic arguments.

Potential Impact

Applications using typeless deserialization with MessagePack-CSharp that rely on disallowed-type checks to block dangerous types may be vulnerable to bypasses. An attacker able to supply typeless ext-100 payloads can circumvent outer-type blocklists by wrapping disallowed types inside arrays or generic containers. This can lead to instantiation of blocked or user-blocklisted gadget types, potentially enabling unsafe deserialization behaviors. The severity is moderate given the requirement for typeless deserialization and attacker ability to supply crafted payloads.

Mitigation Recommendations

A fix is available in MessagePack versions 2.5.301 and 3.1.7. Users should upgrade to these or later versions to ensure recursive type-disallow checks are enforced. Until patched, avoid using typeless deserialization on untrusted data. If typeless deserialization is necessary, configure an explicit allowlist that recursively validates array elements and generic arguments rather than relying on outer-type blocklists alone.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-qhmf-xw27-6rqr
Osv Schema Version
1.4.0
Aliases
["CVE-2026-48517"]
Ecosystems
["NuGet"]
Database Specific Severity
MODERATE
Cvss Version
4.0

Threat ID: 6a3ef7f327e9c79719036ed5

Added to database: 06/26/2026, 22:06:43 UTC

Last enriched: 06/26/2026, 22:52:50 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 66

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses