cve.bz

CVE-2025-12084 python python: Inefficient Algorithmic Complexity

6.3 mediumEPSS 0.9%Fix available

Medium (6.3) in python python. EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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

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
EPSS
0.9% (unchanged from 0.9% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-12084 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-12084?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-12084?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-12084 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.10.20
Python Software Foundation CPythonfrom 3.11.0 before 3.11.15
Python Software Foundation CPythonfrom 3.12.0 before 3.12.13
Python Software Foundation CPythonfrom 3.13.0 before 3.13.11
Python Software Foundation CPythonfrom 3.14.0 before 3.14.2
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0a3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python3.93.9.2-1+deb11u4DLA-4445-1
Debian11python3.93.9.2-1+deb11u5DLA-4455-1
Debian12python3.113.11.2-6+deb12u7DEBIAN-CVE-2025-12084
Debian12, 13pypy3, jythonno fix listedDEBIAN-CVE-2025-12084
Debian13python3.133.13.5-2+deb13u1DEBIAN-CVE-2025-12084
Debian14jython2.7.4-1DEBIAN-CVE-2025-12084
Debian14pypy37.3.21+dfsg-1DEBIAN-CVE-2025-12084
Debian14python3.143.14.2-1DEBIAN-CVE-2025-12084
Ubuntu16.04:LTS, 18.04:LTSjythonno fix listedUBUNTU-CVE-2025-12084
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morepypy3, jythonno fix listedUBUNTU-CVE-2025-12084
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.14UBUNTU-CVE-2025-12084 USN-8018-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.11UBUNTU-CVE-2025-12084 USN-8018-1
Ubuntu25.10python3.133.13.7-1ubuntu0.3UBUNTU-CVE-2025-12084 USN-8018-1
Ubuntu25.10python3.143.14.0-1ubuntu0.2UBUNTU-CVE-2025-12084 USN-8018-1
UbuntuPro:14.04:LTSpython2.72.7.6-8ubuntu0.6+esm29UBUNTU-CVE-2025-12084 USN-8018-3
UbuntuPro:14.04:LTSpython3.43.4.3-1ubuntu1~14.04.7+esm19UBUNTU-CVE-2025-12084 USN-8018-1
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm9UBUNTU-CVE-2025-12084 USN-8018-1
UbuntuPro:16.04:LTSpython2.72.7.12-1ubuntu0~16.04.18+esm19UBUNTU-CVE-2025-12084 USN-8018-3
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm21UBUNTU-CVE-2025-12084 USN-8018-1
UbuntuPro:18.04:LTSpython2.72.7.17-1~18.04ubuntu1.13+esm14UBUNTU-CVE-2025-12084 USN-8018-3
8 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreampython3-idle, python3-test, platform-python and 5 more0:3.6.8-72.el8_10RHSA-2026:1631
Red Hatenterprise_linux:8::appstreampython3.11, python3.11-libs, python3.11-devel and 4 more0:3.11.13-4.el8_10RHSA-2026:1374
Red Hatenterprise_linux:8::appstreampython3.12, python3.12-libs, python3.12-devel and 4 more0:3.12.12-1.el8_10RHSA-2026:0123
Red Hatenterprise_linux:8::baseospython3, python3-libs, python3-test and 3 more0:3.6.8-72.el8_10RHSA-2026:1631
Red Hatenterprise_linux:8::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.13-4.el8_10RHSA-2026:1374
Red Hatenterprise_linux:8::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.12-1.el8_10RHSA-2026:0123
Red Hatenterprise_linux:9::appstreampython3-devel, python3-tkinter, python3.9-debuginfo and 2 more0:3.9.25-3.el9_7RHSA-2026:1478
Red Hatenterprise_linux:9::appstreampython3.11, python3.11-libs, python3.11-devel and 3 more0:3.11.13-5.el9_7RHSA-2026:1410
Red Hatenterprise_linux:9::appstreampython3.12, python3.12-libs, python3.12-devel and 3 more0:3.12.12-4.el9_7RHSA-2026:1408
Red Hatenterprise_linux:9::baseospython3, python3.9, python3-libs and 2 more0:3.9.25-3.el9_7RHSA-2026:1478
Red Hatenterprise_linux:9::crbpython3, python3-idle, python3-test and 4 more0:3.9.25-3.el9_7RHSA-2026:1478
Red Hatenterprise_linux:9::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.13-5.el9_7RHSA-2026:1410
37 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepython311, python311-core, python311-documentation3.11.14-150400.9.72.1SUSE-SU-2026:0299-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepython311, python311-core, python311-documentation3.11.15-150400.9.80.1SUSE-SU-2026:1117-1
SUSELinux Enterprise Micro 5.2, Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4 and 2 morepython3, python3-core3.6.15-150300.10.103.1SUSE-SU-2026:0027-1
SUSELinux Enterprise Module for Basesystem 15 SP7python311-core3.11.14-150600.3.41.2SUSE-SU-2026:0314-1
SUSELinux Enterprise Module for Basesystem 15 SP7python311-core3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
SUSELinux Enterprise Module for Development Tools 15 SP7python3-core3.6.15-150300.10.103.1SUSE-SU-2026:0027-1
SUSELinux Enterprise Module for Package Hub 15 SP7python, python-base2.7.18-150000.94.1SUSE-SU-2026:0268-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.14-150400.9.72.1SUSE-SU-2026:0299-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.15-150400.9.80.1SUSE-SU-2026:1117-1
SUSELinux Enterprise Module for Python 3 15 SP7python311, python311-core3.11.14-150600.3.41.2SUSE-SU-2026:0314-1
SUSELinux Enterprise Module for Python 3 15 SP7python313, python313-core3.13.11-150700.4.36.1SUSE-SU-2026:0024-1
SUSELinux Enterprise Module for Python 3 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6python311, python311-core3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
9 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6python, python-doc, python-base2.7.18-150000.94.1SUSE-SU-2026:0268-1
openSUSELeap 15.6python3, python3-core, python3-documentation3.6.15-150300.10.103.1SUSE-SU-2026:0027-1
openSUSELeap 15.6python310, python310-core, python310-documentation3.10.19-150400.4.94.1SUSE-SU-2026:0130-1
openSUSELeap 15.6python311, python311-core3.11.14-150600.3.41.2SUSE-SU-2026:0314-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
openSUSELeap 15.6python311-documentation3.11.14-150600.3.41.1SUSE-SU-2026:0314-1
openSUSELeap 15.6python312, python312-core, python312-documentation3.12.12-150600.3.40.1SUSE-SU-2026:0025-1
openSUSELeap 15.6python39, python39-core, python39-documentation3.9.25-150300.4.90.1SUSE-SU-2025:4522-1
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.11-160000.1.1openSUSE-SU-2026:20081-1
openSUSETumbleweedpython3103.10.19-3.1openSUSE-SU-2025:15839-1
openSUSETumbleweedpython3113.11.14-3.1openSUSE-SU-2025:15849-1
openSUSETumbleweedpython3123.12.12-4.1openSUSE-SU-2025:15850-1
4 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8python3-idle, python3-libs, python3-test and 4 more3.6.8-72.el8_10.alma.1ALSA-2026:1631
AlmaLinux8python3.11, python3.11-idle, python3.11-libs and 5 more3.11.13-4.el8_10ALSA-2026:1374
AlmaLinux8python3.12, python3.12-idle, python3.12-libs and 5 more3.12.12-1.el8_10ALSA-2026:0123
AlmaLinux9python3, python3-idle, python3-libs and 5 more3.9.25-3.el9_7ALSA-2026:1478
AlmaLinux9python3.11, python3.11-idle, python3.11-libs and 4 more3.11.13-5.el9_7ALSA-2026:1410
AlmaLinux9python3.12, python3.12-idle, python3.12-libs and 4 more3.12.12-4.el9_7ALSA-2026:1408
AlmaLinux10python-unversioned-command3.12.12-3.el10_1ALSA-2026:1828
Rocky Linux8python30:3.6.8-72.el8_10.rocky.0RLSA-2026:1631
Rocky Linux8python3.110:3.11.13-4.el8_10RLSA-2026:1374
Rocky Linux8python3.120:3.12.12-1.el8_10RLSA-2026:0123
Rocky Linux9python3.110:3.11.13-5.el9_7RLSA-2026:1410
Rocky Linux9python3.120:3.12.12-4.el9_7RLSA-2026:1408
Rocky Linux9python3.90:3.9.25-3.el9_7RLSA-2026:1478
Rocky Linux10python3.120:3.12.12-3.el10_1RLSA-2026:1828
Azure Linux2python33.9.19-19AZL-71441
Azure Linux3python-pyno fix listedAZL-109680
Azure Linux3python33.12.9-7AZL-71450
Alpaquita23python33.11.13-r2BELL-CVE-2025-12084
Alpaquita25python33.12.12-r1BELL-CVE-2025-12084
Alpaquitastreampython33.12.12-r2BELL-CVE-2025-12084
BellSoft Hardened Containers23python33.11.13-r2BELL-CVE-2025-12084
BellSoft Hardened Containers25python33.12.12-r1BELL-CVE-2025-12084
BellSoft Hardened Containersstreampython33.12.12-r2BELL-CVE-2025-12084

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Important for Red Hat products as it can lead to a denial of service. The flaw exists in the `xml.dom.minidom` module of cpython, where a quadratic algorithm in methods like `appendChild()` can be triggered when processing excessively nested XML documents. When successfully exploited this may impact the availability of applications utilizing this functionality across affected Red Hat products.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.12-0:3.12.12-3.el10_1Fixed 2026-02-03RHSA-2026:1828
Red Hat Enterprise Linux 10.0 Extended Update Supportpython3.12-0:3.12.9-2.el10_0.6Fixed 2026-02-09RHSA-2026:2233
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython-0:2.7.5-94.el7_9.2Fixed 2026-01-29RHSA-2026:1537
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython3-0:3.6.8-21.el7_9.3Fixed 2026-02-16RHSA-2026:2713
Red Hat Enterprise Linux 8python3.12-0:3.12.12-1.el8_10Fixed 2026-01-06RHSA-2026:0123
Red Hat Enterprise Linux 8python3.11-0:3.11.13-4.el8_10Fixed 2026-01-27RHSA-2026:1374
Red Hat Enterprise Linux 8python3-0:3.6.8-72.el8_10Fixed 2026-02-02RHSA-2026:1631
Red Hat Enterprise Linux 8.2 Advanced Update Supportpython3-0:3.6.8-24.el8_2.5Fixed 2026-02-02RHSA-2026:1620
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpython3-0:3.6.8-39.el8_4.8Fixed 2026-01-29RHSA-2026:1558
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpython3-0:3.6.8-39.el8_4.8Fixed 2026-01-29RHSA-2026:1558
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 6pythonOut of support scope
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python39-devel:3.9/python39Out of support scope
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-amd-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-aws-nvidia-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-azure-amd-rhel9Will not fix
36 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-12084.

References

Check your stackJSON