CVE-2024-48924

CVE-2024-48924 is a medium-severity security vulnerability in MessagePack (nuget), affecting versions < 2.5.187. It is fixed in 2.5.187, 3.0.214-rc.1.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

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

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

For more information

If you have any questions or comments about this advisory:

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, which provided an inadequate fix for the hash collision part of the vulnerability.

Affected versions

MessagePack (< 2.5.187) MessagePack (>= 2.6.95-alpha, < 3.0.214-rc.1)

Security releases

MessagePack → 2.5.187 (nuget) MessagePack → 3.0.214-rc.1 (nuget)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

The following steps are required to mitigate this risk.

  1. Upgrade to a version of the library where a fix is available. If upgrading from v1, check out our migration guide.
  2. Review the steps in this previous advisory to ensure you have your application configured for untrusted data.

Frequently Asked Questions

  1. What is CVE-2024-48924? CVE-2024-48924 is a medium-severity security vulnerability in MessagePack (nuget), affecting versions < 2.5.187. It is fixed in 2.5.187, 3.0.214-rc.1.
  2. Which versions of MessagePack are affected by CVE-2024-48924? MessagePack (nuget) versions < 2.5.187 is affected.
  3. Is there a fix for CVE-2024-48924? Yes. CVE-2024-48924 is fixed in 2.5.187, 3.0.214-rc.1. Upgrade to this version or later.
  4. Is CVE-2024-48924 exploitable, and should I be worried? Whether CVE-2024-48924 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2024-48924 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2024-48924?
    • Upgrade MessagePack to 2.5.187 or later
    • Upgrade MessagePack to 3.0.214-rc.1 or later

Other vulnerabilities in MessagePack

Stop the waste.
Protect your environment with Kodem.