Skip to content
Heist/ feed
Back to feed
High

Improper Handling of Exceptional Conditions in Newtonsoft.Json

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-21907
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:17 UTC · Revision 1

Source evidence

Improper Handling of Exceptional Conditions in Newtonsoft.Json

core-osv · Original source

Published 3 Jan 2024, 15:23 UTC

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.

osv:CVE-2024-21907
Complete source record
{
  "id": "ed39d3358bd00a481d6896ddda226b7d4137c094ac6bbeeca37d1990637540d8",
  "url": "https://osv.dev/vulnerability/CVE-2024-21907",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Handling of Exceptional Conditions in Newtonsoft.Json",
    "summary": "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.",
    "evidence": "osv:CVE-2024-21907",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-21907",
      "aliases": [
        "CVE-2024-21907",
        "GHSA-5crp-9r3c-p9vr"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jamesnk/newtonsoft.json",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ae9fe44e1323e91bcbd185ca1a14099fba7c021f"
                },
                {
                  "fixed": "7e77bbe1beccceac4fc7b174b53abfefac278b66"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:newtonsoft:json.net:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "13.0.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7e77bbe1beccceac4fc7b174b53abfefac278b66"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "12.0.3",
            "12.0.2",
            "12.0.1",
            "9.0.1",
            "11.0.2",
            "11.0.1",
            "10.0.3",
            "10.0.2",
            "10.0.1",
            "8.0.3",
            "8.0.2",
            "8.0.1",
            "7.0.1",
            "6.0.8",
            "6.0.7",
            "6.0.6",
            "6.0.5",
            "6.0.4",
            "6.0.3",
            "6.0.1",
            "5.0.8",
            "5.0.7",
            "5.0.6",
            "5.0.5",
            "5.0.4",
            "5.0.3",
            "4.5.11",
            "4.5.10",
            "4.5.8",
            "4.5.7",
            "4.5.6",
            "4.5.5",
            "4.5.4",
            "4.5.3",
            "4.0.8",
            "4.0.7",
            "4.0.6",
            "4.0.5",
            "4.0.4",
            "4.0.3",
            "4.0.2",
            "4.0.1",
            "3.5.8",
            "3.5.7",
            "3.5.6",
            "3.5.5",
            "3.5.4",
            "3.5.3",
            "3.5.2",
            "3.5.1",
            "3.0.1",
            "2.0.4",
            "2.0.3",
            "2.0.2",
            "2.0.1",
            "1.3.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21907.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.563419917Z",
      "provider": "osv",
      "references": [
        "https://alephsecurity.com/2018/10/22/StackOverflowException/",
        "https://alephsecurity.com/vulns/aleph-2018004",
        "https://nuget.org/packages",
        "https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21907.json",
        "https://github.com/advisories/GHSA-5crp-9r3c-p9vr",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-21907",
        "https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr",
        "https://github.com/JamesNK/Newtonsoft.Json/issues/2457",
        "https://github.com/JamesNK/Newtonsoft.Json/pull/2462",
        "https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-755"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21907.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-21907",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507935,
  "published_at": "2024-01-03T15:23:04.441+00:00"
}