Original 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.
Affected software
- Python < 3.13.11= 3.15.0≥ 3.14.0 < 3.14.2 Fixed in: 3.13.11, 3.14.2 exact match
Details
- Published
- 2025-12-04
- Last modified
- 2026-03-03
- CVSS vector
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- EPSS (30-day exploit probability)
- 0.86% (percentile 59)
References
- cve.org/CVE-2025-12084
- nvd.nist.gov/vuln/detail/CVE-2025-12084
- github.com/python/cpython/pull/142146
- github.com/python/cpython/issues/142145
- github.com/python/cpython/commit/08d8e18ad81cd45bc4a27d6da478b51ea49486e4
- github.com/python/cpython/commit/027f21e417b26eed4505ac2db101a4352b7c51a0
- github.com/python/cpython/commit/ddcd2acd85d891a53e281c773b3093f9db953964
- github.com/python/cpython/commit/27648a1818749ef44c420afe6173af6868715437
- github.com/python/cpython/commit/8d2d7bb2e754f8649a68ce4116271a4932f76907
- github.com/python/cpython/commit/9c9dda6625a2a90d2a06c657eee021d6be19842d
- github.com/python/cpython/commit/a696ba8b4d42fd632afc9bc88ad830a2e4cceed8
- github.com/python/cpython/commit/41f468786762348960486c166833a218a0a436af
- github.com/python/cpython/commit/57937a8e5e293f0dcba5115f7b7a11b1e0c9a273
- github.com/python/cpython/commit/e91c11449cad34bac3ea55ee09ca557691d92b53
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.