Home / MessagePack-CSharp / MessagePack-CSharp / CVE-2024-48924
CVE-2024-48924: is it exploited, and which versions of MessagePack-CSharp are affected and fixed?
CVE-2024-48924 is an use of Weak Hash vulnerability in MessagePack-CSharp. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: MessagePack before 2.5.187 and MessagePack from 2.6.95-alpha before 3.0.214-rc.1 (GitHub advisory GHSA-4qm4-8hg2-g2xm). Fixed in 2.5.187 and 3.0.214-rc.1 (GitHub advisory GHSA-4qm4-8hg2-g2xm). Severity: High (8.7, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:25 UTC.
What is CVE-2024-48924?
MessagePack allows untrusted data to lead to DoS attack due to hash collisions and stack overflow
### 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]
From the CVE record by GitHub_M, last updated October 18, 2024, 17:20 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| MessagePack-CSharp | MessagePack-CSharp | < 2.5.187 >= 2.6.95-alpha, < 3.0.214-rc.1 |
As the CVE record by GitHub_M states it, last updated October 18, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| NuGet | MessagePack | < 2.5.187 | 2.5.187 | GHSA-4qm4-8hg2-g2xm |
| NuGet | MessagePack | >= 2.6.95-alpha, < 3.0.214-rc.1 | 3.0.214-rc.1 | GHSA-4qm4-8hg2-g2xm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 18, 2024. Summary: MessagePack allows untrusted data to lead to DoS attack due to hash collisions and stack overflow.
How severe is CVE-2024-48924?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-48924 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, October 18, 2024)
- EPSS
- 0.37% probability of exploitation activity in the next 30 days, percentile 33.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-328 Use of Weak Hash
Where are the vendor advisories and references?
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-4qm4-8hg2-g2xm x_refsource_CONFIRM
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/commit/8e599af0798b45008f8b293a7f233e4878f11ed5 x_refsource_MISC
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/commit/f8d40b3ad0be01c6e56cb51ecea81f59d98c192d x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- October 9, 2024
- Published
- October 17, 2024, 20:36 UTC
- CVE record updated
- October 18, 2024, 17:20 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:59 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:25 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect MessagePack-CSharp?
- Oct 15, 2026CVE-2026-92707 MessagePack-CSharp: improperly Controlled Sequential Memory Allocation
- Jun 22, 2026CVE-2026-48109 MessagePack-CSharp: improper input validation
- Jun 22, 2026CVE-2026-48502 MessagePack-CSharp: out-of-bounds read
- Jun 22, 2026CVE-2026-48506 MessagePack-CSharp: uncontrolled recursion
- Jun 22, 2026CVE-2026-48509 MessagePack-CSharp: insecure default setting
- Jun 22, 2026CVE-2026-48510 MessagePack-CSharp: improper Handling of Highly Compressed Data (Data Amplification)
- Jun 22, 2026CVE-2026-48511 MessagePack-CSharp: denial of service through slow algorithm
- Jun 22, 2026CVE-2026-48512 MessagePack-CSharp: uncontrolled recursion
Every CVE in MessagePack-CSharp
Questions about CVE-2024-48924
Is CVE-2024-48924 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.37% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of MessagePack-CSharp are affected by CVE-2024-48924?
MessagePack before 2.5.187 and MessagePack from 2.6.95-alpha before 3.0.214-rc.1, per the GitHub advisory GHSA-4qm4-8hg2-g2xm. The tables above give every range the sources list.
Which version fixes CVE-2024-48924?
2.5.187 and 3.0.214-rc.1, per the GitHub advisory GHSA-4qm4-8hg2-g2xm. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-48924?
High (8.7, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-48924?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.