Deserialization Flaw in MessagePack for C# by MessagePack
CVE-2026-48513
6.3MEDIUM
What is CVE-2026-48513?
A deserialization vulnerability exists in MessagePack for C#, where improper handling of union deserialization can lead to security risks. Specifically, prior to versions 2.5.301 and 3.1.7, the generated union deserializers failed to enforce depth checks during recursive deserialization processes. As a result, malicious users could exploit the system by sending crafted data that bypasses safety checks, allowing for potential denial of service or arbitrary code execution. Users should update to the latest versions to mitigate these risks and ensure security.
Affected Version(s)
MessagePack-CSharp >= 3.1.7, < 3.1.7 < 3.1.7, 3.1.7
MessagePack-CSharp < 2.5.301 < 2.5.301
