# CVE-2025-12084: Quadratic complexity in node ID cache clearing

- Severity: Medium 6.3 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2025-12-03T18:55:32.222Z
- Modified: 2026-09-08T08:48:18.946Z
- Also known as: PSF-2025-16, BIT-LIBPYTHON-2025-12084, BIT-PYTHON-2025-12084, BIT-PYTHON-MIN-2025-12084
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- 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
- https://github.com/python/cpython: before 08d8e18ad81cd45bc4a27d6da478b51ea49486e4; before 027f21e417b26eed4505ac2db101a4352b7c51a0; before ddcd2acd85d891a53e281c773b3093f9db953964; before 27648a1818749ef44c420afe6173af6868715437; before 8d2d7bb2e754f8649a68ce4116271a4932f76907; before 9c9dda6625a2a90d2a06c657eee021d6be19842d; before a696ba8b4d42fd632afc9bc88ad830a2e4cceed8; before 41f468786762348960486c166833a218a0a436af; before 57937a8e5e293f0dcba5115f7b7a11b1e0c9a273; before e91c11449cad34bac3ea55ee09ca557691d92b53; before a46c10ec9d4050ab67b8a932e0859a2ea60c3cb8; before c97e87593063d84a2bd9fe7068b30eb44de23dc0
- python python: before 3.13.11; from 3.14.0 before 3.14.2; 3.15.0
- 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
- 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
- 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

## Every score

- PSF: CVSS:4.0 6.3 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/pull/142146> (fix, issue-tracking, patch, web)
- <https://github.com/python/cpython/issues/142145> (fix, issue-tracking, patch, report)
- <https://github.com/python/cpython/commit/08d8e18ad81cd45bc4a27d6da478b51ea49486e4> (fix, patch)
- <https://github.com/python/cpython/commit/027f21e417b26eed4505ac2db101a4352b7c51a0> (fix, patch)
- <https://github.com/python/cpython/commit/ddcd2acd85d891a53e281c773b3093f9db953964> (fix, patch)
- <https://github.com/python/cpython/commit/27648a1818749ef44c420afe6173af6868715437> (fix, patch, web)
- <https://github.com/python/cpython/commit/8d2d7bb2e754f8649a68ce4116271a4932f76907> (fix, patch, web)
- <https://github.com/python/cpython/commit/9c9dda6625a2a90d2a06c657eee021d6be19842d> (fix, patch, web)
- <https://github.com/python/cpython/commit/a696ba8b4d42fd632afc9bc88ad830a2e4cceed8> (fix, patch, web)
- <https://github.com/python/cpython/commit/41f468786762348960486c166833a218a0a436af> (fix, patch, web)
- <https://github.com/python/cpython/commit/57937a8e5e293f0dcba5115f7b7a11b1e0c9a273> (fix, patch, web)
- <https://github.com/python/cpython/commit/e91c11449cad34bac3ea55ee09ca557691d92b53> (fix, patch, web)
- <https://github.com/python/cpython/commit/a46c10ec9d4050ab67b8a932e0859a2ea60c3cb8> (fix, patch, web)
- <https://github.com/python/cpython/commit/c97e87593063d84a2bd9fe7068b30eb44de23dc0> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-12084> (web)

## Sources

- CVE List: [CVE-2025-12084](https://www.cve.org/CVERecord?id=CVE-2025-12084), CVE Terms of Use, modified 2026-03-03
- Python Software Foundation: [PSF-2025-16](https://osv.dev/vulnerability/PSF-2025-16), CC-BY-4.0, modified 2026-05-11
- NVD: [CVE-2025-12084](https://nvd.nist.gov/vuln/detail/CVE-2025-12084), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2025-12084](https://osv.dev/vulnerability/BIT-LIBPYTHON-2025-12084), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2025-12084](https://osv.dev/vulnerability/BIT-PYTHON-2025-12084), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2025-12084](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2025-12084), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-12084 · Whole record: https://cve.day/CVE-2025-12084.json · Rebuilt by cve.day 2026-11-25T22:59:08.236Z
