CVE-2024-21907
Newtonsoft Json.net vulnerability
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
Json.net. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Newtonsoft Json.net runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66 · Patch
- github.com/JamesNK/Newtonsoft.Json/pull/2462 · Patch
- github.com/JamesNK/Newtonsoft.Json/issues/2457 · Exploit
- github.com/advisories/GHSA-5crp-9r3c-p9vr · Third Party Advisory
- security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678 · Exploit
- vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr · Third Party Advisory
- alephsecurity.com/2018/10/22/StackOverflowException/ · Exploit
- alephsecurity.com/vulns/aleph-2018004 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-21907
- cve.org/CVERecord?id=CVE-2024-21907
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.