CVE-2026-48516
Analyzed Analyzed - Analysis Complete

Hash Collision DoS in MessagePack for C#

Vulnerability report for CVE-2026-48516, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-22

Last updated on: 2026-06-25

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-22
Last Modified
2026-06-25
Generated
2026-07-13
AI Q&A
2026-06-23
EPSS Evaluated
2026-07-11
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
messagepack messagepack to 2.5.301 (exc)
messagepack messagepack From 3.0.3 (inc) to 3.1.7 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in MessagePack for C#, specifically in versions prior to 2.5.301 and 3.1.7. The issue is that the InterfaceLookupFormatter<Tkey,TElement> constructs an internal dictionary using the default equality comparer instead of a security-aware comparer provided by the application's security options. This omission allows an attacker to exploit hash collisions, leading to a CPU denial of service attack against ILookup<TKey,TElement> even if the application has enabled untrusted-data security measures.

Impact Analysis

The vulnerability can be exploited to cause a denial of service by forcing excessive CPU usage through hash collisions. This means that an attacker can degrade or disrupt the availability of applications using the affected versions of MessagePack for C#, potentially causing performance issues or outages.

Mitigation Strategies

To mitigate this vulnerability, update MessagePack for C# to version 2.5.301 or 3.1.7 or later, where the issue has been fixed.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Detection Guidance

This vulnerability is related to the MessagePack-CSharp library versions prior to 2.5.301 and 3.1.7, specifically in the InterfaceLookupFormatter which uses a default equality comparer instead of a security-aware comparer. Detection involves identifying if your system or application is using an affected version of the MessagePack-CSharp library.

Since this is a software library vulnerability, detection on a network level is not straightforward. Instead, you should check the version of the MessagePack-CSharp library used in your application dependencies.

Suggested commands to detect the vulnerable versions in your project environment include:

  • For .NET projects using NuGet, run: `dotnet list package | findstr MessagePack` or `nuget list MessagePack` to check the installed version.
  • For projects using package.config, inspect the package.config file or run: `nuget.exe list MessagePack -AllVersions` and compare with installed versions.
  • Check your project files (e.g., .csproj) for the MessagePack package version.

If you observe versions earlier than 2.5.301 or 3.1.7, your system is vulnerable and should be updated.

Additionally, monitoring for unusual CPU usage or performance degradation in services using MessagePack deserialization of untrusted data might indicate exploitation attempts, but no specific network detection commands are provided.

Chat Assistant

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

EPSS Chart