Vulnerabilities · 2025 · Python
CVE-2025-12084
Python vulnerability
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.
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python/cpython/commit/027f21e417b26eed4505ac2db101a4352b7c51a0 · Patch
- github.com/python/cpython/commit/08d8e18ad81cd45bc4a27d6da478b51ea49486e4 · Patch
- github.com/python/cpython/commit/ddcd2acd85d891a53e281c773b3093f9db953964 · Patch
- github.com/python/cpython/issues/142145 · Patch
- github.com/python/cpython/pull/142146 · Patch
- github.com/python/cpython/commit/27648a1818749ef44c420afe6173af6868715437
- github.com/python/cpython/commit/41f468786762348960486c166833a218a0a436af
- github.com/python/cpython/commit/57937a8e5e293f0dcba5115f7b7a11b1e0c9a273
- nvd.nist.gov/vuln/detail/CVE-2025-12084
- cve.org/CVERecord?id=CVE-2025-12084
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.