CVE-2024-21907
Improper Handling of Exceptional Conditions in Newtonsoft.Json
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckFix
Newtonsoft.Json (NuGet): OSV reports a fixed version 13.0.1. Check the advisory for supported release branches.
Source: OSV GHSA-5crp-9r3c-p9vrAffected products and versions
| Product | Versions | Authority |
|---|---|---|
Newtonsoft.Json
nuget |
≥ 0; < 13.0.1 (affected, semver 2.0.0)
Other versions: unaffected |
CNA: VulnCheck |
Newtonsoft.JsonNewtonsoft.Json
NuGet |
10.0.1 (affected, NuGet) 10.0.1-beta1 (affected, NuGet) 10.0.2 (affected, NuGet) 10.0.3 (affected, NuGet) 11.0.1 (affected, NuGet) 11.0.1-beta1 (affected, NuGet) 11.0.1-beta2 (affected, NuGet) 11.0.1-beta3 (affected, NuGet) 11.0.2 (affected, NuGet) 12.0.1 (affected, NuGet) 12.0.1-beta1 (affected, NuGet) 12.0.1-beta2 (affected, NuGet) 12.0.2 (affected, NuGet) 12.0.2-beta1 (affected, NuGet) 12.0.2-beta2 (affected, NuGet) 12.0.2-beta3 (affected, NuGet) 12.0.3 (affected, NuGet) 12.0.3-beta1 (affected, NuGet) 12.0.3-beta2 (affected, NuGet) 13.0.1-beta1 (affected, NuGet) 13.0.1-beta2 (affected, NuGet) 3.5.8 (affected, NuGet) 4.0.1 (affected, NuGet) 4.0.2 (affected, NuGet) 4.0.3 (affected, NuGet) 4.0.4 (affected, NuGet) 4.0.5 (affected, NuGet) 4.0.6 (affected, NuGet) 4.0.7 (affected, NuGet) 4.0.8 (affected, NuGet) 4.5.1 (affected, NuGet) 4.5.10 (affected, NuGet) 4.5.11 (affected, NuGet) 4.5.2 (affected, NuGet) 4.5.3 (affected, NuGet) 4.5.4 (affected, NuGet) 4.5.5 (affected, NuGet) 4.5.6 (affected, NuGet) 4.5.7 (affected, NuGet) 4.5.8 (affected, NuGet) 4.5.9 (affected, NuGet) 5.0.1 (affected, NuGet) 5.0.2 (affected, NuGet) 5.0.3 (affected, NuGet) 5.0.4 (affected, NuGet) 5.0.5 (affected, NuGet) 5.0.6 (affected, NuGet) 5.0.7 (affected, NuGet) 5.0.8 (affected, NuGet) 6.0.1 (affected, NuGet) 6.0.1-beta1 (affected, NuGet) 6.0.2 (affected, NuGet) 6.0.3 (affected, NuGet) 6.0.4 (affected, NuGet) 6.0.5 (affected, NuGet) 6.0.6 (affected, NuGet) 6.0.7 (affected, NuGet) 6.0.8 (affected, NuGet) 7.0.1 (affected, NuGet) 7.0.1-beta1 (affected, NuGet) 7.0.1-beta2 (affected, NuGet) 7.0.1-beta3 (affected, NuGet) 8.0.1 (affected, NuGet) 8.0.1-beta1 (affected, NuGet) 8.0.1-beta2 (affected, NuGet) 8.0.1-beta3 (affected, NuGet) 8.0.1-beta4 (affected, NuGet) 8.0.2 (affected, NuGet) 8.0.3 (affected, NuGet) 8.0.4-beta1 (affected, NuGet) 9.0.1 (affected, NuGet) 9.0.1-beta1 (affected, NuGet) 9.0.2-beta1 (affected, NuGet) 9.0.2-beta2 (affected, NuGet) Ecosystem version events: introduced 0; fixed 13.0.1 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-5crp-9r3c-p9vr |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | ADP: CISA-ADP |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/JamesNK/Newtonsoft.Json/issues/2457CNA: VulnCheck · issue-tracking
- https://github.com/JamesNK/Newtonsoft.Json/pull/2462CNA: VulnCheck · issue-tracking, patch
- https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66CNA: VulnCheck · patch
- https://alephsecurity.com/2018/10/22/StackOverflowException/CNA: VulnCheck · related
- https://alephsecurity.com/vulns/aleph-2018004CNA: VulnCheck · related
- https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678CNA: VulnCheck · related
- https://github.com/advisories/GHSA-5crp-9r3c-p9vrCNA: VulnCheck · vendor-advisory
- https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vrCNA: VulnCheck · third-party-advisory
- https://github.com/JamesNK/Newtonsoft.Json/issues/2457ADP: CVE · issue-tracking, x_transferred
- https://github.com/JamesNK/Newtonsoft.Json/pull/2462ADP: CVE · related, x_transferred
- https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66ADP: CVE · related, x_transferred
- https://alephsecurity.com/2018/10/22/StackOverflowException/ADP: CVE · related, x_transferred
- https://alephsecurity.com/vulns/aleph-2018004ADP: CVE · related, x_transferred
- https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678ADP: CVE · related, x_transferred
- https://github.com/advisories/GHSA-5crp-9r3c-p9vrADP: CVE · third-party-advisory, x_transferred
- https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vrADP: CVE · third-party-advisory, x_transferred
- https://github.com/advisories/GHSA-5crp-9r3c-p9vrOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-5crp-9r3c-p9vrOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.