Read the docs
TI-2024-32619 Aliases CVE-2024-48924GHSA-4qm4-8hg2-g2xm

MessagePack allows untrusted data to lead to DoS attack due to hash collisions and stack overflow

Priority MEDIUM 44CWE-328Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

### Impact When this library is used to deserialize messagepack data from an untrusted source, there is a risk of a denial of service attack by an attacker that sends data contrived to produce hash collisions, leading to large CPU consumption disproportionate to the size of the data being deserialized. This is similar to [a prior advisory](https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-7q36-4xx7-xcxf), which provided an inadequate fix for the hash collision part of the vulnerability. ### Patches The following steps are required to mitigate this risk. 1. Upgrade to a version of the library where a fix is available. 1. Review the steps in [this previous advisory](https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-7q36-4xx7-xcxf) to ensure you have your application configured for untrusted data. ### Workarounds If upgrading MessagePack to a patched version is not an option for you, you may apply a manual workaround as follows: 1. Declare a class that derives from `MessagePackSecurity`. 2. Override the `GetHashCollisionResistantEqualityComparer<T>` method to provide a collision-resistant hash function of your own and avoid calling `base.GetHashCollisionResistantEqualityComparer<T>()`. 3. Configure a `MessagePackSerializerOptions` with an instance of your derived type by calling `WithSecurity` on an existing options object. 4. Use your custom options object for all deserialization operations. This may be by setting the `MessagePackSerializer.DefaultOptions` static property, if you call methods that rely on this default property, and/or by passing in the options object explicitly to any `Deserialize` method. ### References - Learn more about best security practices when reading untrusted data with [MessagePack 1.x](https://github.com/MessagePack-CSharp/MessagePack-CSharp/tree/v1.x#security) or [MessagePack 2.x](https://github.com/MessagePack-CSharp/MessagePack-CSharp#security). - The .NET team's [discussion on hash collision vulnerabilities of their `HashCode` struct](https://github.com/GrabYourPitchforks/runtime/blob/threat_models/docs/design/security/System.HashCode.md). ### For more information If you have any questions or comments about this advisory: * [Start a public discussion](https://github.com/MessagePack-CSharp/MessagePack-CSharp/discussions) * [Email us privately](mailto:[email protected])

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00374 31st percentileScored 2026-11-07
Fix Fixed MessagePack-CSharp (MessagePack-CSharp): 2.5.187, 3.0.214-rc.1MessagePack (NuGet): 2.5.187, 3.0.214-rc.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MessagePack-CSharpMessagePack-CSharpbefore 2.5.187; 2.6.95-alpha to before 3.0.214-rc.12.5.187, 3.0.214-rc.1Patch availableCNA
—MessagePack (NuGet)before 2.5.1872.5.187Patch availableGHSA-4qm4-8hg2-g2xm
—MessagePack (NuGet)2.6.95-alpha to before 3.0.214-rc.13.0.214-rc.1Patch availableGHSA-4qm4-8hg2-g2xm
  • MessagePack-CSharp VendorMessagePack-CSharp Affected before 2.5.187; 2.6.95-alpha to before 3.0.214-rc.1 Fixed in 2.5.187, 3.0.214-rc.1 Patch available CNA
  • MessagePack (NuGet) Vendor— Affected before 2.5.187 Fixed in 2.5.187 Patch available GHSA-4qm4-8hg2-g2xm
  • MessagePack (NuGet) Vendor— Affected 2.6.95-alpha to before 3.0.214-rc.1 Fixed in 3.0.214-rc.1 Patch available GHSA-4qm4-8hg2-g2xm

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:messagepack:messagepack-csharp:*:*:*:*:*:*:*:*——MessagePack-CSharp
  • cpe:2.3:a:messagepack:messagepack-csharp:*:*:*:*:*:*:*:* Versions — — ·MessagePack-CSharp

Remediation

  • Fix · CNA MessagePack-CSharp (MessagePack-CSharp) Fixed in 2.5.187, 3.0.214-rc.1
  • Fix · GHSA-4qm4-8hg2-g2xm MessagePack (NuGet) Fixed in 2.5.187 Advisory →
  • Fix · GHSA-4qm4-8hg2-g2xm MessagePack (NuGet) Fixed in 3.0.214-rc.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-48924
  2. 2026-10-03 Alias added: GHSA-4qm4-8hg2-g2xm

References

  • TI-2026-35549 MessagePack-CSharp: LZ4 decompression may fail with AccessViolationException after dereferencing memory from bad input CVSS 3.1HIGH 8.2
  • TI-2026-35866 MessagePack-CSharp: MessagePackReader.Skip can recurse without enforcing maximum object graph depth CVSS 3.1HIGH 7.5
  • TI-2026-35873 MessagePack-CSharp: DynamicUnionResolver generated deserializers miss depth enforcement CVSS 4.0MEDIUM 6.3
  • TI-2026-35863 Out-of-bounds read in MessagePack-CSharp CVSS 4.0HIGH 8.2
  • TI-2020-04290 Untrusted data can lead to DoS attack in MessagePack for C# and Unity CVSS 3.1MEDIUM 6.5
  • TI-2026-74662 Nested arrays in MessagePack for C# cause excessive memory allocation CVSS 3.1MEDIUM 5.3
See all 14 →

Sources