CVE-2026-48517
Received Received - Intake
MessagePack-CSharp Typeless Deserialization Type Confusion

Publication date: 2026-06-22

Last updated on: 2026-06-22

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-22
Last Modified
2026-06-22
Generated
2026-06-23
AI Q&A
2026-06-23
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
neuecc messagepack-csharp 2.5.301
neuecc messagepack-csharp 3.1.7
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-470 The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.
CWE-502 The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in MessagePack for C#, a serializer for C#. Before versions 2.5.301 and 3.1.7, the typeless deserialization feature included a safety check to block dangerous types. However, this check only examined the outer type name and did not recursively inspect types inside arrays or generic type arguments. Consequently, a type that should have been blocked could be hidden inside an array or generic type and bypass the check, allowing the deserialization process to materialize formatters for these inner blocked types.

Impact Analysis

The vulnerability allows potentially dangerous types to be deserialized despite safety checks, which can lead to unexpected or unsafe behavior during deserialization. This could be exploited to execute malicious code or cause application instability by bypassing type restrictions.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade MessagePack for C# to version 2.5.301 or 3.1.7 or later, where the issue with typeless deserialization and unsafe type checks has been fixed.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-48517. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart