6.3medium
Quadratic complexity in node ID cache clearing
- Severity
- 6.3medium CVSS:4.0 by PSF
- Exploit likelihood
- 0.86% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PSF
- Also known as
- PSF-2025-16BIT-LIBPYTHON-2025-12084BIT-PYTHON-2025-12084BIT-PYTHON-MIN-2025-12084
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
| Product or package | Versions | Reported by |
|---|---|---|
| Python Software Foundation CPython | before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.2, from 3.15.0a1 before 3.15.0a3 | CVE List |
| https://github.com/python/cpython | before 08d8e18ad81cd45bc4a27d6da478b51ea49486e4, before 027f21e417b26eed4505ac2db101a4352b7c51a0, before ddcd2acd85d891a53e281c773b3093f9db953964, before 27648a1818749ef44c420afe6173af6868715437, before 8d2d7bb2e754f8649a68ce4116271a4932f76907, before 9c9dda6625a2a90d2a06c657eee021d6be19842d, before a696ba8b4d42fd632afc9bc88ad830a2e4cceed8, before 41f468786762348960486c166833a218a0a436af and 4 more | Python Software Foundation |
| python python | before 3.13.11, from 3.14.0 before 3.14.2, 3.15.0 | NVD |
| libpython (Bitnami) | before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.2 | Bitnami Vulnerability Database |
| python (Bitnami) | before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.2 | Bitnami Vulnerability Database |
| python-min (Bitnami) | before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.2 | Bitnami Vulnerability Database |
All scores
| PSF | 6.3medium CVSS:4.0 | 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 |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Al construir elementos anidados utilizando métodos de xml.dom.minidom como appendChild() que tienen una dependencia de _clear_id_cache(), el algoritmo es cuadrático. La disponibilidad puede verse afectada al construir documentos excesivamente anidados.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-12084 changed 2026-03-03 | CVE Terms of Use |
| Python Software Foundation | PSF-2025-16 changed 2026-05-11 | CC-BY-4.0 |
| NVD | CVE-2025-12084 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2025-12084 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2025-12084 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2025-12084 changed 2026-09-08 | Apache-2.0 |