CVE-2025-12084
JSON

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 packageVersionsReported by
Python Software Foundation CPythonbefore 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.0a3CVE List
https://github.com/python/cpythonbefore 08d8e18ad81cd45bc4a27d6da478b51ea49486e4, before 027f21e417b26eed4505ac2db101a4352b7c51a0, before ddcd2acd85d891a53e281c773b3093f9db953964, before 27648a1818749ef44c420afe6173af6868715437, before 8d2d7bb2e754f8649a68ce4116271a4932f76907, before 9c9dda6625a2a90d2a06c657eee021d6be19842d, before a696ba8b4d42fd632afc9bc88ad830a2e4cceed8, before 41f468786762348960486c166833a218a0a436af and 4 morePython Software Foundation
python pythonbefore 3.13.11, from 3.14.0 before 3.14.2, 3.15.0NVD
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.2Bitnami 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.2Bitnami 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.2Bitnami Vulnerability Database

All scores

PSF6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Bitnami Vulnerability Databasemedium rating

Classification

CWE-407

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

https://github.com/python/cpython/pull/142146fix, issue-tracking, patch, web
https://github.com/python/cpython/issues/142145fix, issue-tracking, patch, report
https://github.com/python/cpython/commit/08d8e18ad81cd45bc4a27d6da478b51ea49486e4fix, patch
https://github.com/python/cpython/commit/027f21e417b26eed4505ac2db101a4352b7c51a0fix, patch
https://github.com/python/cpython/commit/ddcd2acd85d891a53e281c773b3093f9db953964fix, patch
https://github.com/python/cpython/commit/27648a1818749ef44c420afe6173af6868715437fix, patch, web
https://github.com/python/cpython/commit/8d2d7bb2e754f8649a68ce4116271a4932f76907fix, patch, web
https://github.com/python/cpython/commit/9c9dda6625a2a90d2a06c657eee021d6be19842dfix, patch, web
https://github.com/python/cpython/commit/a696ba8b4d42fd632afc9bc88ad830a2e4cceed8fix, patch, web
https://github.com/python/cpython/commit/41f468786762348960486c166833a218a0a436affix, patch, web
https://github.com/python/cpython/commit/57937a8e5e293f0dcba5115f7b7a11b1e0c9a273fix, patch, web
https://github.com/python/cpython/commit/e91c11449cad34bac3ea55ee09ca557691d92b53fix, patch, web

Sources

SourceRecordLicence
CVE ListCVE-2025-12084 changed 2026-03-03CVE Terms of Use
Python Software FoundationPSF-2025-16 changed 2026-05-11CC-BY-4.0
NVDCVE-2025-12084 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2025-12084 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2025-12084 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2025-12084 changed 2026-09-08Apache-2.0