Skip to main content
← All vulnerabilities
CVE-2026-48516GHSA-Q2H6-GHWM-5QM8

MessagePack-CSharp: InterfaceLookupFormatter bypasses collision-resistant comparer settings

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.7, 2.5.301
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, InterfaceLookupFormatter<TKey,TElement> constructs an internal Dictionary<TKey, IGrouping<TKey,TElement>> with the default equality comparer instead of the security-aware comparer supplied by options.Security.GetEqualityComparer<TKey>(). This formatter omission allows hash-collision CPU denial of service against ILookup<TKey,TElement> even when the application has opted into the untrusted-data security posture This vulnerability is fixed in 2.5.301 and 3.1.7.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • MessagePack-CSharp MessagePack-CSharp

    From 3.0 · fixed in 3.1.7; fixed in 2.5.301

  • MessagePackNuGet

    fixed in 2.5.301

  • MessagePackNuGet

    From 3.0 · fixed in 3.1.7

References 1

GitHub · MessagePack-CSharp/MessagePack-CSharp