Vulnerability in Newtonsoft Json.net
CVE-2024-21907
Newtonsoft.Json before version 13.0.1 is affected by a mishandling of exceptional conditions vulnerability. Crafted data that is passed to the JsonConvert.DeserializeObject method may trigger a StackOverflow exception resulting in denial of service. Depending on the usage of the library, an unauthenticated and remote attacker may be able to cause the denial of service condition.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.329, 98.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- iSecurityTW/seal-security-nuget-demo-net7 (last pushed 2026-05-15): .NET 7 fork of seal-security-nuget-demo: same CVE-2024-21907 exploit story, retargeted for customers locked to .NET SDK 7.
- seal-sec-demo-2/seal-security-nuget-demo-net7 (last pushed 2026-05-15): .NET 7 fork of seal-security-nuget-demo: same CVE-2024-21907 exploit story, retargeted for customers locked to .NET SDK 7.
Also mentioned in 6 other repositories (aargenveldt/SbomTest, ARPSyndicate/cve-scores, cavecafe-cc/sparrow-cert, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/JamesNK/Newtonsoft.Json/issues/2457 (issue-tracking, Exploit, Third Party Advisory, Issue Tracking)
- github.com/JamesNK/Newtonsoft.Json/pull/2462 (related, issue-tracking, Patch, patch)
- github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278… (related, Patch, patch)
- alephsecurity.com/2018/10/22/StackOverflowException/ (related, Exploit)
- alephsecurity.com/vulns/aleph-2018004 (related, Exploit)
- security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678 (related, Exploit, Third Party Advisory)
- GitHub Security Advisory (GHSA-5crp-9r3c-p9vr) (vendor-advisory, Third Party Advisory, third-party-advisory)
- vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr (Third Party Advisory, third-party-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.