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

Published Dec 3, 2025
·
Updated

Quadratic complexity in node ID cache clearing

Other sources

When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on clearidcache() the algorithm is quadratic. Availability can be impacted when building excessively nested documents.

— NVD

Affected Software

31 affected componentsFixes available
pypi/cpython
Microsoft cbl2 python3 3.9.19-17
Microsoft azl3 tensorflow 2.16.1-9
Microsoft azl3 python3 3.12.9-6
Python Python<3.13.11
Python Python>=3.14.0<3.14.2
Python Python=3.15.0-alpha1
Python Python=3.15.0-alpha2
IBM Concert Software<=1.0-3.0.0
All of the following
azurelinux/python3<3.12.9-7
3.12.9-7
Microsoft Azure Linux=3.0
All of the following
azurelinux/python3<3.9.19-19
3.9.19-19
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/python3=3.9.19-17
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/tensorflow=2.16.1-9
Microsoft Azure Linux=3.0
debian/jython*
debian/jython*
debian/jython*
debian/pypy3*
debian/pypy3*
debian/pypy3<7.3.21+dfsg-1
7.3.21+dfsg-1
debian/python3.11<3.11.2-6+deb12u7
3.11.2-6+deb12u7
debian/python3.13<3.13.5-2+deb13u1
3.13.5-2+deb13u1
debian/python3.14<3.14.2-1
3.14.2-1
debian/jython<=2.7.3+repack1-1
debian/pypy3<=7.3.11+dfsg-2+deb12u3, <=7.3.19+dfsg-2
8.0.1+dfsg-1
debian/python3.11
3.11.2-6+deb12u83.11.2-6+deb12u9
debian/python3.13
3.13.5-2+deb13u53.13.18-1
debian/python3.14
3.14.10-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/python3 to a version that resolves this vulnerability.

    Fixed in 3.9.19-19
  2. Upgrade

    Upgrade azurelinux/python3 to a version that resolves this vulnerability.

    Fixed in 3.12.9-7
  3. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.21+dfsg-1
  4. Upgrade

    Upgrade debian/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.2-6+deb12u7
  5. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u1
  6. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.2-1
  7. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 8.0.1+dfsg-1
  8. Upgrade

    Upgrade debian/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.2-6+deb12u8Fixed in 3.11.2-6+deb12u9
  9. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u5Fixed in 3.13.18-1
  10. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.10-1

Event History

Dec 3, 2025
CVE Published
via MITRE·06:55 PM
Data Sourced
via MITRE·06:55 PM
Description
Data Sourced
via OSV·06:55 PM
DescriptionSeverity
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:15 PM
Affected Software
Dec 6, 2025
Data Sourced
via Microsoft·01:04 AM
DescriptionSeverityWeaknessAffected Software
Oct 14, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-12084?

CVE-2025-12084 has the potential to significantly impact availability due to its quadratic algorithm when processing excessively nested documents.

2

How do I fix CVE-2025-12084?

Fixing CVE-2025-12084 involves updating to the latest version of Python's xml.dom.minidom which includes optimizations for handling nested elements.

3

What is the impact of CVE-2025-12084?

CVE-2025-12084 can lead to performance issues or application crashes when dealing with deeply nested XML documents.

4

Which versions of Python xml.dom.minidom are affected by CVE-2025-12084?

CVE-2025-12084 affects all versions of Python xml.dom.minidom that utilize the vulnerable appendChild() methods.

5

Is CVE-2025-12084 easily exploitable?

CVE-2025-12084 is primarily a performance-based issue and is not directly exploitable in a security context, but it can degrade application functionality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203