Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Improper Handling of Exceptional Conditions in Newtonsoft.Json

cve-program · severity unknownEUVD CVSS 3.1 7.5 CVSS 3.1 · [email protected] · Primary 7.5 HIGHCVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary 7.5 HIGHCVSS_V3 Publisher rating HIGHFixed by Newtonsoft.Json 13.0.1KEV status unknown

cve-program · CVE-2024-21907

Published

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.

Read the publisher's advisory

euvd · EUVD-2022-5935

Published

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.

Read the publisher's advisory

nvd · CVE-2024-21907

Published

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.

Read the publisher's advisory

osv · GHSA-5crp-9r3c-p9vr

Published

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.**

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2024-21907

Published

Newtonsoft.Json

NuGet

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "collectionURL": "https://nuget.org/packages",
                    "defaultStatus": "unaffected",
                    "packageURL": "pkg:nuget/Newtonsoft.Json",
                    "packageName": "Newtonsoft.Json",
                    "versions": [
                        {
                            "lessThan": "13.0.1",
                            "status": "affected",
                            "version": "0",
                            "versionType": "semver 2.0.0"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2022-5935

Published

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Jan 3, 2024, 3:23:04 PM

dateUpdated: Nov 8, 2026, 1:59:50 PM

2 related source bulletins · separate from aliases

NCSC-2025-0280: Kwetsbaarheden verholpen in Microsoft SQL Server

CVE-2025-47997 · CVE-2025-55227 · CVE-2024-21907

WID-SEC-W-2025-2006: Microsoft SQL Server: Mehrere Schwachstellen

CVE-2024-21907 · CVE-2025-47997 · CVE-2025-55227

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2024-21907

Published

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Modified

Weakness classifications: CWE-755

Original publisher date fields

published: 2024-01-03T16:15:08.793

lastModified: 2026-07-14T23:17:13.903

1 source CPE criteria · context only
  • cpe:2.3:a:newtonsoft:json.net:*:*:*:*:*:*:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-5crp-9r3c-p9vr

Published

Newtonsoft.Json

NuGet

ECOSYSTEM · introduced 0 → fixed 13.0.1

74 versions listed as affected

10.0.1, 10.0.1-beta1, 10.0.2, 10.0.3, 11.0.1, 11.0.1-beta1, 11.0.1-beta2, 11.0.1-beta3, 11.0.2, 12.0.1, 12.0.1-beta1, 12.0.1-beta2, 12.0.2, 12.0.2-beta1, 12.0.2-beta2, 12.0.2-beta3, 12.0.3, 12.0.3-beta1, 12.0.3-beta2, 13.0.1-beta1, 13.0.1-beta2, 3.5.8, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.5.1, 4.5.10, 4.5.11, 4.5.2, 4.5.3, 4.5.4, 4.5.5, 4.5.6, 4.5.7, 4.5.8, 4.5.9, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 6.0.1, 6.0.1-beta1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 7.0.1, 7.0.1-beta1, 7.0.1-beta2, 7.0.1-beta3, 8.0.1, 8.0.1-beta1, 8.0.1-beta2, 8.0.1-beta3, 8.0.1-beta4, 8.0.2, 8.0.3, 8.0.4-beta1, 9.0.1, 9.0.1-beta1, 9.0.2-beta1, 9.0.2-beta2

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 24 Nov 23:10 UTC · 275 of 277 readable · 271 fully read · documentation 469/469 current