{"id":"EUVD-2022-5935","revision":null,"records":[{"revision":"d06e076ca844455dadc4ed1f5f799b6a","observedAt":"2026-11-08T15:04:17.023+00:00","statement":{"source":"cve-program","id":"CVE-2024-21907","aliases":[],"title":"Improper Handling of Exceptional Conditions in Newtonsoft.Json","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.","state":0,"publishedAt":"2024-01-03T15:23:04.441+00:00","modifiedAt":"2026-11-08T13:59:50.15+00:00","affected":[{"ecosystem":"NuGet","name":"Newtonsoft.Json","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://nuget.org/packages\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:nuget/Newtonsoft.Json\",\n                    \"packageName\": \"Newtonsoft.Json\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"13.0.1\",\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"versionType\": \"semver 2.0.0\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-21907","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-21907","identifiers":["CVE-2024-21907"]},"retained":false,"historicalAffected":[]},{"revision":"f9d407408f0743c9b9d87aa8d1ee38ea","observedAt":"2026-11-23T04:26:58.963+00:00","statement":{"source":"euvd","id":"EUVD-2022-5935","aliases":["CVE-2024-21907","GHSA-5crp-9r3c-p9vr"],"title":"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…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":null}],"references":["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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-5935","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jan 3, 2024, 3:23:04 PM","dateUpdated":"Nov 8, 2026, 1:59:50 PM"},"relatedAdvisories":[{"id":"NCSC-2025-0280","title":"Kwetsbaarheden verholpen in Microsoft SQL Server","vulnerabilityIds":["CVE-2025-47997","CVE-2025-55227","CVE-2024-21907"]},{"id":"WID-SEC-W-2025-2006","title":"Microsoft SQL Server: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2024-21907","CVE-2025-47997","CVE-2025-55227"]}],"note":"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."},"key":"euvd:EUVD-2022-5935","identifiers":["EUVD-2022-5935","CVE-2024-21907","GHSA-5crp-9r3c-p9vr"]},"retained":false,"historicalAffected":[]},{"revision":"2eb882ccab9d49e78ab93134887bcd26","observedAt":"2026-10-24T23:17:22.571+00:00","statement":{"source":"nvd","id":"CVE-2024-21907","aliases":[],"title":"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…","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.","state":0,"publishedAt":"2024-01-03T16:15:08.793+00:00","modifiedAt":"2026-07-14T23:17:13.903+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"},{"system":"CVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0 · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://alephsecurity.com/2018/10/22/StackOverflowException/","https://alephsecurity.com/vulns/aleph-2018004","https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66","https://github.com/JamesNK/Newtonsoft.Json/issues/2457","https://github.com/JamesNK/Newtonsoft.Json/pull/2462","https://github.com/advisories/GHSA-5crp-9r3c-p9vr","https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678","https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-21907","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-755"],"productCriteria":["cpe:2.3:a:newtonsoft:json.net:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-01-03T16:15:08.793","lastModified":"2026-07-14T23:17:13.903"},"relatedAdvisories":[],"note":"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."},"key":"nvd:CVE-2024-21907","identifiers":["CVE-2024-21907"]},"retained":false,"historicalAffected":[]},{"revision":"e6fcfd3aaae14c6bb71fcc6eee126194","observedAt":"2026-10-23T16:01:25.029+00:00","statement":{"source":"osv","id":"GHSA-5crp-9r3c-p9vr","aliases":["CVE-2024-21907"],"title":"Improper Handling of Exceptional Conditions in Newtonsoft.Json","description":"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). \n\nThe serialization and deserialization path have different properties regarding the issue.\n\nDeserializing 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.\n\nSerializing methods (like `JsonConvert.Serialize` or `JObject.ToString`) will throw StackOverFlow exception with the nesting level of around 20k.\n\nTo 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`:\n\n``` \nJsonConvert.DefaultSettings = () => new JsonSerializerSettings { MaxDepth = 128 };\n```\n\nRepro code:\n```\n//Create a string representation of an highly nested object (JSON serialized)\nint nRep = 25000;\nstring json = string.Concat(Enumerable.Repeat(\"{a:\", nRep)) + \"1\" +\n string.Concat(Enumerable.Repeat(\"}\", nRep));\n\n//Parse this object (leads to high CPU/RAM consumption)\nvar parsedJson = JsonConvert.DeserializeObject(json);\n\n// Methods below all throw stack overflow with nRep around 20k and higher\n// string a = parsedJson.ToString();\n// string b = JsonConvert.SerializeObject(parsedJson);\n```\n\n### Additional affected product and version information\n**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.**","state":0,"publishedAt":"2022-06-22T15:08:47+00:00","modifiedAt":"2026-07-08T06:53:11.5834831+00:00","affected":[{"ecosystem":"NuGet","name":"Newtonsoft.Json","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"13.0.1"}]}],"versions":["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"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["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://github.com/JamesNK/Newtonsoft.Json","https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678"],"sourceUrl":"https://github.com/advisories/GHSA-5crp-9r3c-p9vr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5crp-9r3c-p9vr","identifiers":["GHSA-5crp-9r3c-p9vr","CVE-2024-21907"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T22:27:06.3527992+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-24T22:27:06.3527992+00:00","lastSuccessAt":"2026-11-24T22:27:06.5205811+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:27:06.5205826+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-0af155dc22761159d248b797dbac8d0aa11f865d1126609a5184a440002c6433","complete":true,"records":431741,"lastAttemptAt":"2026-11-24T22:24:37.1886266+00:00","lastSuccessAt":"2026-11-24T21:25:02.0622258+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:24:37.1886266+00:00","snapshotPublishedAt":"2026-11-24T21:23:44+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-28b887c99f7145dda7ace466f918c91e","complete":false,"records":13937,"lastAttemptAt":"2026-11-24T22:28:04.5591871+00:00","lastSuccessAt":"2026-11-24T22:28:04.553+00:00","error":"83 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T22:28:04.553+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13891,"expectedIdentifiers":13985,"failedIdentifiers":83},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T22:27:06.3527992+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T22:27:06.3527992+00:00","lastSuccessAt":"2026-11-24T22:27:06.5215044+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:27:06.5215045+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-3ad3b25f604e44bda2ea6931dc885ec4","complete":false,"records":13949,"lastAttemptAt":"2026-11-24T22:27:31.9125458+00:00","lastSuccessAt":"2026-11-24T22:27:31.909+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:27:31.909+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13482,"expectedIdentifiers":13985,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-405a053187402e726b6cc93dfb6b06b7f8167edb4cd914f4088b49fd5fc97ad6","complete":true,"records":10076,"lastAttemptAt":"2026-11-24T22:27:02.4399621+00:00","lastSuccessAt":"2026-11-24T22:27:02.1501068+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:27:02.4399621+00:00","snapshotPublishedAt":"2026-11-24T21:48:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T22:24:37.356901+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:24:37.356901+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-40938cbac3e2265a24e0d129a60138a855ec8a44cbd619ad6c0de0b22c0e253f","complete":true,"records":3221,"lastAttemptAt":"2026-11-24T22:27:06.3184471+00:00","lastSuccessAt":"2026-11-24T22:27:06.1844325+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:27:06.3184471+00:00","snapshotPublishedAt":"2026-11-24T22:03:27+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-12fe8d1112095ea1d3a280b20e5f9795088a15116df7792de7dc55e04efd8d08","complete":true,"records":233045,"lastAttemptAt":"2026-11-24T22:26:52.8689858+00:00","lastSuccessAt":"2026-11-24T22:26:51.6875747+00:00","error":null,"lastVerifiedAt":"2026-11-24T22:26:52.8689858+00:00","snapshotPublishedAt":"2026-11-24T21:48:21+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}