# CVE-2024-21907: Improper Handling of Exceptional Conditions in Newtonsoft.Json

Status: published. Published: 2024-01-03. Updated: 2026-11-08.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/JamesNK/Newtonsoft.Json/pull/2462
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66
- fix: Newtonsoft.Json (NuGet): OSV reports a fixed version 13.0.1. Check the advisory for supported release branches. (source: OSV GHSA-5crp-9r3c-p9vr) — https://github.com/advisories/GHSA-5crp-9r3c-p9vr

## Affected products and versions

-  /  (Newtonsoft.Json): ≥ 0; < 13.0.1 (affected, semver 2.0.0). Source: CNA: VulnCheck
-  / Newtonsoft.Json (Newtonsoft.Json): 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: OSV GHSA-5crp-9r3c-p9vr

## Severity and prioritization

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; source: ADP: CISA-ADP

- CISA KEV: No listing in collected sources

- EPSS: 32.91% as of 2026-11-08; percentile 98.37%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-755

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/JamesNK/Newtonsoft.Json/issues/2457 (CNA: VulnCheck; issue-tracking)

- https://github.com/JamesNK/Newtonsoft.Json/pull/2462 (CNA: VulnCheck; issue-tracking, patch)

- https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66 (CNA: VulnCheck; patch)

- https://alephsecurity.com/2018/10/22/StackOverflowException/ (CNA: VulnCheck; related)

- https://alephsecurity.com/vulns/aleph-2018004 (CNA: VulnCheck; related)

- https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678 (CNA: VulnCheck; related)

- https://github.com/advisories/GHSA-5crp-9r3c-p9vr (CNA: VulnCheck; vendor-advisory)

- https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr (CNA: VulnCheck; third-party-advisory)

- https://github.com/JamesNK/Newtonsoft.Json/issues/2457 (ADP: CVE; issue-tracking, x_transferred)

- https://github.com/JamesNK/Newtonsoft.Json/pull/2462 (ADP: CVE; related, x_transferred)

- https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66 (ADP: CVE; related, x_transferred)

- https://alephsecurity.com/2018/10/22/StackOverflowException/ (ADP: CVE; related, x_transferred)

- https://alephsecurity.com/vulns/aleph-2018004 (ADP: CVE; related, x_transferred)

- https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678 (ADP: CVE; related, x_transferred)

- https://github.com/advisories/GHSA-5crp-9r3c-p9vr (ADP: CVE; third-party-advisory, x_transferred)

- https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr (ADP: CVE; third-party-advisory, x_transferred)

- https://github.com/advisories/GHSA-5crp-9r3c-p9vr (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-5crp-9r3c-p9vr (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: VulnCheck: https://www.cve.org/CVERecord?id=CVE-2024-21907; retrieved 2026-11-08; source updated 2026-11-08

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-5crp-9r3c-p9vr; retrieved 2026-11-08; source updated 2026-07-08

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-21907; retrieved 2026-11-08; source updated Not reported

Revision: 3726f72fbd92fe2d82a2fb101a6dcfddf70b50a750c6beb3d48b90dfd0ba6869

Canonical: https://y2.dev/cve/CVE-2024-21907

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.