Denial of Service Vulnerability in MessagePack for C# by MessagePack
CVE-2026-48516
6.3MEDIUM
What is CVE-2026-48516?
The MessagePack for C# serializer, prior to designated versions, contains a vulnerability where the InterfaceLookupFormatter<TKey,TElement> utilizes an internal Dictionary<TKey, IGrouping<TKey,TElement>> with a default equality comparer rather than an appropriate security-aware comparer. This oversight leads to a hash-collision Denial of Service (DoS) on ILookup<TKey,TElement>, persisting even if the application has adopted the untrusted-data security configuration. The issue has been addressed in versions 2.5.301 and 3.1.7.
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
