{
  "id": "CVE-2026-4224",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-4224",
  "published_at": "2026-03-16T17:52:26.639Z",
  "title": "Stack overflow parsing XML with deeply nested DTD content models",
  "vendor": "Python Software Foundation",
  "product": "CPython",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "When an Expat parser with a registered ElementDeclHandler parses an inline\ndocument type definition containing a deeply nested content model a C stack\noverflow occurs.",
  "cwe": "CWE-674",
  "cpes": [
    "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Python Software Foundation",
        "product": "CPython",
        "ranges": [
          "\u003c 3.10.21",
          "\u003e= 3.11.0, \u003c 3.11.16",
          "\u003e= 3.12.0, \u003c 3.12.14",
          "\u003e= 3.13.0, \u003c 3.13.13",
          "\u003e= 3.14.0, \u003c 3.14.4",
          "\u003e= 3.15.0a1, \u003c 3.15.0a8"
        ],
        "fixed_in": [
          "3.10.21",
          "3.11.16",
          "3.12.14",
          "3.13.13",
          "3.14.4",
          "3.15.0a8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CPython to 3.10.21 or 3.11.16 or 3.12.14 or 3.13.13 or 3.14.4 or 3.15.0a8 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/5M7CGUW3XBRY7II4DK43KF7NQQ3TPZ6R/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/pull/145987"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/196edfb06a7458377d4d0f4b3cd41724c1f3bd4a"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/e0a8a6da90597a924b300debe045cdb4628ee1f3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/642865ddf4b232da1f3b1f7abcfa3254c4bfe785"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/af856a7177326ac25d9f66cc6dd28b554d914fee"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/24ce88b285f56ee11626cf5e472af3cd8cc7c621"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
