Improper handling of exceptional conditions in Newtonsoft.Json - CVE-2024-21907
Published: August 27, 2024
Vulnerability identifier: #VU96575
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-21907
CWE-ID: CWE-755
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: JamesNK
Affected software:
Newtonsoft.Json
Newtonsoft.Json
Detailed vulnerability description
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to improper handling of errors within the JsonConvert.DeserializeObject method. A remote attacker can send specially crafted input and perform a denial of service (DoS) attack.
How to mitigate CVE-2024-21907
Install updates from vendor's website.
Sources
- https://github.com/JamesNK/Newtonsoft.Json/issues/2457
- https://github.com/JamesNK/Newtonsoft.Json/pull/2462
- https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66
- https://alephsecurity.com/2018/10/22/StackOverflowException/
- https://alephsecurity.com/vulns/aleph-2018004
- https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678
- https://github.com/advisories/GHSA-5crp-9r3c-p9vr
- https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr