Skip to main content
CVE-2025-12084VulnerabilityPublished Updated

CVE-2025-12084: Python Software Foundation CPython · Vulnerability

Affects Python Software Foundation CPythonSource CVE Database V5

0

Not known to be exploited · CVSS 6.3 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
GitHubpython/cpythonpkg:github/python/cpythonOther threatsAffected
  • =0
  • =3.11.0
  • =3.12.0
  • =3.13.0
  • =3.14.0
  • =3.15.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2025-12084, organizations should implement several specific measures beyond generic advice: 1) Monitor and restrict the complexity and depth of XML documents accepted by applications using xml.dom.minidom, employing XML schema validation or custom logic to reject excessively nested structures. 2) Where feasible, replace xml.dom.minidom with more efficient XML parsing libraries that do not exhibit quadratic behavior or that provide built-in protections against deeply nested XML. 3) Implement resource usage limits (CPU and memory) on processes handling XML parsing to contain potential denial of service impacts. 4) Employ network-level protections such as rate limiting and input validation to reduce exposure to crafted XML payloads. 5) Stay alert for official patches or updates from the Python Software Foundation and apply them promptly once available. 6) In environments processing untrusted XML, consider sandboxing or isolating XML parsing components to minimize the blast radius of potential DoS attacks. 7) Conduct code reviews and testing focused on XML handling to identify and remediate similar inefficiencies or vulnerabilities.

Description

When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic. Availability can be impacted when building excessively nested documents.

References

Community reviews

Loading reviews…