Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Newtonsoft.Json | < 13.0.1 | 13.0.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | newtonsoft-json | No fix yet | — |
| Ubuntu 22.04 LTS | newtonsoft-json | No fix yet | — |
| Ubuntu 20.04 LTS | newtonsoft-json | No fix yet | — |
| Ubuntu 18.04 LTS | newtonsoft-json | No fix yet | — |
| Ubuntu 16.04 LTS | newtonsoft-json | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
iSecurityTW/seal-security-nuget-demo-net7 ★ 0 · May 18, 2026
.NET 7 fork of seal-security-nuget-demo: same CVE-2024-21907 exploit story, retargeted for customers locked to .NET SDK 7.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| NuGet | Newtonsoft.Json | < 13.0.1 | 13.0.1 | GHSA-5crp-9r3c-p9vr |
Advisories 2
- WID-SEC-2025-2006 Microsoft SQL Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 9, 2025
- NCSC-2025-0280 Kwetsbaarheden verholpen in Microsoft SQL Server NCSC-NL (Netherlands) · Sep 9, 2025
References
- https://github.com/JamesNK/Newtonsoft.Json/issues/2457 issue-tracking
- https://github.com/JamesNK/Newtonsoft.Json/pull/2462 issue-tracking patch
- https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66 patch
- https://alephsecurity.com/2018/10/22/StackOverflowException/ related
- https://alephsecurity.com/vulns/aleph-2018004 related
- https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678 related
- GitHub Security Advisory (GHSA-5crp-9r3c-p9vr) vendor-advisory
- https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr third-party-advisory