CVE-2024-21907: Denial of service in Newtonsoft.Json deserialization
- Vendor
- Newtonsoft
CVE-2024-21907 is an improper handling of exceptional conditions vulnerability in Newtonsoft.Json versions before 13.0.1. Crafted JSON, including deeply nested structures, processed by JsonConvert.DeserializeObject can trigger a StackOverflow exception and cause denial of service in the consuming application. Depending on how the application exposes deserialization functionality, exploitation may be possible remotely without authentication.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can crash an affected application or make its service unavailable through stack exhaustion. Resource exhaustion is also possible depending on the deserialization call context. Applications and services that deserialize attacker-controlled JSON using an affected Newtonsoft.Json version are exposed. Remote code execution is not established; an isolated claim involving Microsoft HPC Pack conflicts with the otherwise consistent denial-of-service characterization.
Mitigation
If you can’t patch tonight, do this now.
As a temporary measure, configure a suitably restrictive MaxDepth in JsonSerializerSettings to limit the nesting depth accepted during deserialization. This stopgap does not replace upgrading the affected library or applying product-specific security updates.
Remediation
Patch, then assume compromise.
Upgrade Newtonsoft.Json to version 13.0.1 or later. For affected bundled deployments, install the corresponding product update: upgrade HCL CAMWorks 2026 SP0 to 2026SP03, and apply the relevant Microsoft September 2025 security updates to affected SQL Server releases. For affected Echo packages, the identified remediation is package version 10.0.1+echo.1 or later; this is a package-specific version rather than the upstream Newtonsoft.Json version.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-21907 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2024-21907?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2024-21907.
- Is there a patch for CVE-2024-21907?
- Upgrade Newtonsoft.Json to version 13.0.1 or later. For affected bundled deployments, install the corresponding product update: upgrade HCL CAMWorks 2026 SP0 to 2026SP03, and apply the relevant Microsoft September 2025 security updates to affected SQL Server releases.
- What products are affected by CVE-2024-21907?
- Newtonsoft Json.Net.
- How severe is CVE-2024-21907?
- CVE-2024-21907 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 2.5% (85th percentile) as of Oct 16, 2026.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.