Loading HuntDB...

CVE-2024-21907

UNKNOWN
Published 2024-01-03T15:23:04.441Z
Actions:

Expert Analysis

Professional remediation guidance

Get tailored security recommendations from our analyst team for CVE-2024-21907. We'll provide specific mitigation strategies based on your environment and risk profile.

CVSS Score

V3.1
7.5
/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Base Score Metrics
Exploitability: N/A Impact: N/A

EPSS Score

v2025.03.14
0.019
probability
of exploitation in the wild

There is a 1.9% chance that this vulnerability will be exploited in the wild within the next 30 days.

Updated: 2025-06-25
Exploit Probability
Percentile: 0.826
Higher than 82.6% of all CVEs

Attack Vector Metrics

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED

Impact Metrics

Confidentiality
NONE
Integrity
NONE
Availability
HIGH

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.

Available Exploits

No exploits available for this CVE.

Related News

No news articles found for this CVE.

Affected Products

Unknown Vendor

Unknown Product

Affected Versions:

0

GitHub Security Advisories

Community-driven vulnerability intelligence from GitHub

✓ GitHub Reviewed HIGH

Improper Handling of Exceptional Conditions in Newtonsoft.Json

GHSA-5crp-9r3c-p9vr

Advisory Details

Newtonsoft.Json prior to version 13.0.1 is vulnerable to Insecure Defaults due to improper handling of expressions with high nesting level that lead to StackOverFlow exception or high CPU and RAM usage. Exploiting this vulnerability results in Denial Of Service (DoS). The serialization and deserialization path have different properties regarding the issue. Deserializing methods (like `JsonConvert.DeserializeObject`) will process the input that results in burning the CPU, allocating memory, and consuming a thread of execution. Quite high nesting level (>10kk, or 9.5MB of `{a:{a:{...` input) is needed to achieve the latency over 10 seconds, depending on the hardware. Serializing methods (like `JsonConvert.Serialize` or `JObject.ToString`) will throw StackOverFlow exception with the nesting level of around 20k. To mitigate the issue one either need to update Newtonsoft.Json to 13.0.1 or set `MaxDepth` parameter in the `JsonSerializerSettings`. This can be done globally with the following statement. After that the parsing of the nested input will fail fast with `Newtonsoft.Json.JsonReaderException`: ``` JsonConvert.DefaultSettings = () => new JsonSerializerSettings { MaxDepth = 128 }; ``` Repro code: ``` //Create a string representation of an highly nested object (JSON serialized) int nRep = 25000; string json = string.Concat(Enumerable.Repeat("{a:", nRep)) + "1" + string.Concat(Enumerable.Repeat("}", nRep)); //Parse this object (leads to high CPU/RAM consumption) var parsedJson = JsonConvert.DeserializeObject(json); // Methods below all throw stack overflow with nRep around 20k and higher // string a = parsedJson.ToString(); // string b = JsonConvert.SerializeObject(parsedJson); ``` ### Additional affected product and version information **The original statement about the problem only affecting IIS applications is misleading.** Any application is affected, however the IIS has a behavior that stops restarting the instance after some time resulting in a harder-to-fix DoS.**

Affected Packages

NuGet Newtonsoft.Json
ECOSYSTEM: ≥0 <13.0.1

CVSS Scoring

CVSS Score

7.5

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Advisory provided by GitHub Security Advisory Database. Published: June 22, 2022, Modified: January 3, 2024

Social Media Intelligence

Real-time discussions and threat intelligence from social platforms

3 posts
Reddit 1 week, 1 day ago
RoboShadow_Liz
Exploit PoC

Patch Tuesday: September 2025 Summary The year is flying past! Microsoft released September's Patch Tuesday update yesterday, releasing updates for 81 vulnerabilities, which includes 2 publicly disclosed zero days. Pssst, as a reminder... did you know that you can now set up AutoFix rules for [Windows Updates](https://portal.roboshadow.com/reports/os-updates) with RoboShadow's Cyber …

6
6.0
View Original High Risk
Reddit 1 week, 1 day ago
FIDclav
Exploit

2025 September KB5065429 Windows 10 Patch | 2 Zero Day Vulnerabilities and 81 Flaws The September 2025 Windows 10 Patch (KB5065429) delivers a significant security update, addressing 81 vulnerabilities including two zero-day threats—one in Newtonsoft.Json and another in Windows SMB. These fixes enhance system protection against potential exploits, with the …

Also mentions: CVE-2025-55234
5
5.0
View Original High Risk
Reddit 1 week, 1 day ago
FIDclav
Exploit

2025 September KB5065426 KB5065431 Windows 11 Patch | 2 Zero Day Vulnerabilities and 81 Flaws The September 2025 Windows 11 patch delivers a robust set of updates aimed at enhancing both security and user experience. It addresses two critical zero-day vulnerabilities—one involving Windows SMB and another tied to the Newtonsoft.Json …

Also mentions: CVE-2025-55234
4
4.0
View Original High Risk

References

Published: 2024-01-03T15:23:04.441Z
Last Modified: 2024-09-06T18:26:37.445Z
Copied to clipboard!