CVE-2025-6075 json
Quadratic complexity in os.path.expandvars() with user-controlled template
published last yr. modified last mo. also BIT-libpython-2025-6075 , BIT-python-2025-6075 , BIT-python-min-2025-6075 , EUVD-2025-37384
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 4%
- public exploits
- 0
- none known
Summary
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Patch / fix
- bitnami libpython 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1
- bitnami python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1
- bitnami python-min 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1
- Python Software Foundation CPython 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1, 3.15.0a2
- pypy3 Debian 14 7.3.21+dfsg-1
- python3.11 Debian 12 3.11.2-6+deb12u7
- python3.13 Debian 13 3.13.5-2+deb13u1
- python3.14 Debian 14 3.14.2-1
debian advisories DEBIAN-CVE-2025-6075
- python3.10 Ubuntu 22.04 LTS 3.10.12-1~22.04.12
- python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.9
- python3.13 Ubuntu 25.10 3.13.7-1ubuntu0.1
- python2.7 Ubuntu Pro 16.04 LTS 2.7.12-1ubuntu0~16.04.18+esm21
- python3.4 Ubuntu Pro 14.04 LTS 3.4.3-1ubuntu1~14.04.7+esm17
- python3.5 Ubuntu Pro 14.04 LTS 3.5.2-2ubuntu0~16.04.4~14.04.1+esm8
- python3.5 Ubuntu Pro 16.04 LTS 3.5.2-2ubuntu0~16.04.13+esm20
- python3.6 Ubuntu Pro 18.04 LTS 3.6.9-1~18.04ubuntu1.13+esm7
ubuntu advisories UBUNTU-CVE-2025-6075
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python3.12 RHEL 9 3.12.13-2.el9_8
- python3.12-idle RHEL 9 3.12.13-2.el9_8
- python3.12-libs RHEL 9 3.12.13-2.el9_8
- python3.12-test RHEL 9 3.12.13-2.el9_8
- python3.12-tkinter RHEL 9 3.12.13-2.el9_8
- python3.12 RHEL 10.2 3.12.13-2.el10_2
- python3 RHEL 10.2 3.12.13-2.el10_2
- python3-idle RHEL 10.2 3.12.13-2.el10_2
red hat advisories RHSA-2026:76945RHSA-2026:74087RHSA-2026:19177RHSA-2026:19064RHSA-2026:10950RHSA-2026:8822
- python311 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +6 more 3.11.15-150400.9.80.1
- python311-core SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +6 more 3.11.15-150400.9.80.1
- python311-documentation SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 3.11.15-150400.9.80.1
- python311 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Python 3 15 SP7 +1 more 3.11.15-150600.3.53.1
- python311-core SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Python 3 15 SP7 +2 more 3.11.15-150600.3.53.1
- python311-documentation openSUSE Leap 15.6 3.11.15-150600.3.53.1
- python311 Linux Micro 6.1 3.11.15-slfo.1.1_1.1
- python311-core Linux Micro 6.1 3.11.15-slfo.1.1_1.1
suse advisories SUSE-SU-2026:1117-1SUSE-SU-2026:1349-1SUSE-SU-2026:20768-1SUSE-SU-2026:20796-1SUSE-SU-2026:0663-1SUSE-SU-2026:0337-1
- python313 openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-core openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-nogil openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-documentation openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-nogil-nogil-core openSUSE Leap 16.0 3.13.11-160000.1.1
- python315 openSUSE Tumbleweed 3.15.0~a1-2.1
- python39 openSUSE Tumbleweed 3.9.24-2.1
- python310 openSUSE Tumbleweed 3.10.19-2.1
opensuse advisories openSUSE-SU-2026:20081-1openSUSE-SU-2025:15791-1openSUSE-SU-2025:15792-1openSUSE-SU-2025:15768-1openSUSE-SU-2025:15760-1openSUSE-SU-2025:15750-1
- python3 AlmaLinux 10 3.12.13-2.el10_2
- python3-idle AlmaLinux 10 3.12.13-2.el10_2
- python3-libs AlmaLinux 10 3.12.13-2.el10_2
- python3-test AlmaLinux 10 3.12.13-2.el10_2
- python3-tkinter AlmaLinux 10 3.12.13-2.el10_2
- python-unversioned-command AlmaLinux 10 3.12.13-2.el10_2
- python3.12 AlmaLinux 9 3.12.13-2.el9_8
- python3.12-idle AlmaLinux 9 3.12.13-2.el9_8
almalinux advisories ALSA-2026:19064ALSA-2026:19177ALSA-2026:10950ALSA-2025:23530ALSA-2025:23342
- python3.12 Rocky Linux 10 3.12.13-2.el10_2
- python3.12 Rocky Linux 9 3.12.13-2.el9_8
- python3.12 Rocky Linux 8 3.12.13-2.el8_10
- python3.9 Rocky Linux 9 3.9.25-2.el9_7
- numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1582+bc278001
- numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1860+afcc1c71
- scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1860+afcc1c71
- scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1582+bc278001
rocky linux advisories RLSA-2026:19064RLSA-2026:19177RLSA-2026:10950RLSA-2025:23342RLSA-2025:23530
- python3 CBL-Mariner 2.0 3.9.19-17
- python3 Azure Linux 3.0 3.12.9-6
azure linux advisories AZL-69625AZL-69628
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Is CVE-2025-6075 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-6075 updated cvss 4.0
python: Quadratic complexity in os.path.expandvars() with user-controlled template
-
Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, firefox, python3, tkinter, python-libs, python-test, +5 more Red Hat Enterprise Linux 8 scipy, firefox, python3, python36, python3.11, python-nose, +32 more Red Hat Enterprise Linux 9 firefox, python3.11, firefox-x11, python3.11-idle, python3.11-libs, python3.11-test, +1 more Red Hat Enterprise Linux 10 firefox Red Hat Enterprise Linux AI (RHEL AI) rhelai1/bootc-amd-rhel9, rhelai1/bootc-nvidia-rhel9, rhelai1/bootc-azure-amd-rhel9, rhelai1/bootc-aws-nvidia-rhel9, rhelai1/bootc-gcp-nvidia-rhel9, rhelai1/bootc-azure-nvidia-rhel9affected: workaround, no fix available “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.”
+2 more productsfewer
Red Hat OpenShift AI (RHOAI) rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 Red Hat OpenShift Dev Spaces devspaces/code-rhel9, devspaces/pluginregistry-rhel9, devspaces-tech-preview/idea-rhel9 -
Red Hat Ceph Storage 8 rhceph 1769512383fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:1652
-
Red Hat Discovery 2 discovery 1767888970, discovery 1767904573fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:0414
-
Red Hat Enterprise Linux AppStream (v. 8) python3.12 3.12.13-2.el8_10, python3.12-libs 3.12.13-2.el8_10, python3.12-tkinter 3.12.13-2.el8_10, python3.12-rpm-macros 3.12.13-2.el8_10, scipy 1.5.4-5.module+el8.9.0+19644+d68f775d, numpy 1.19.4-3.module+el8.9.0+19644+d68f775d, +53 morefixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2025:23530
-
Red Hat Enterprise Linux AppStream (v. 9) python3.12 3.12.13-2.el9_8, python3-tkinter 3.9.25-2.el9_7, python3.12-libs 3.12.13-2.el9_8, python3.12-tkinter 3.12.13-2.el9_8, python-unversioned-command 3.9.25-2.el9_7fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2025:23342
-
Red Hat Enterprise Linux AppStream (v. 10) python3-tkinter 3.12.13-2.el10_2, python-unversioned-command 3.12.13-2.el10_2fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:19064
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) python3-tkinter 3.9.16-1.el9_2.15, python-unversioned-command 3.9.16-1.el9_2.15fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:76945
-
Red Hat Enterprise Linux AppStream E4S (v.9.4) python3-tkinter 3.9.18-3.el9_4.14, python-unversioned-command 3.9.18-3.el9_4.14fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:74087
show 10 moreshow fewer
-
Red Hat Enterprise Linux BaseOS (v. 9) python3 3.9.25-2.el9_7, python3.9 3.9.25-2.el9_7, python3-libs 3.9.25-2.el9_7fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2025:23342
-
Red Hat Enterprise Linux BaseOS (v. 10) python3 3.12.13-2.el10_2, python3.12 3.12.13-2.el10_2, python3-libs 3.12.13-2.el10_2fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:19064
-
Red Hat Enterprise Linux BaseOS E4S (v.9.2) python3 3.9.16-1.el9_2.15, python3.9 3.9.16-1.el9_2.15, python3-libs 3.9.16-1.el9_2.15fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:76945
-
Red Hat Enterprise Linux BaseOS E4S (v.9.4) python3 3.9.18-3.el9_4.14, python3.9 3.9.18-3.el9_4.14, python3-libs 3.9.18-3.el9_4.14fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:74087
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) python3 3.9.25-2.el9_7, python3.12 3.12.13-2.el9_8, python3-idle 3.9.25-2.el9_7, python3-test 3.9.25-2.el9_7, python3-tkinter 3.9.25-2.el9_7, python3.12-idle 3.12.13-2.el9_8, +2 morefixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2025:23342
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) python3-idle 3.12.13-2.el10_2, python3-test 3.12.13-2.el10_2fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:19064
-
Red Hat Enterprise Linux CRB (v. 8) python3.12 3.12.13-2.el8_10, python3.12-idle 3.12.13-2.el8_10, python3.12-test 3.12.13-2.el8_10, python3.12-tkinter 3.12.13-2.el8_10, pytest 6.0.2-2.module+el8.9.0+19644+d68f775d, Cython 0.29.21-5.module+el8.9.0+19644+d68f775d, +20 morefixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2025:23530
-
Red Hat Hardened Images python3 3.14.4-1.hum1, python3.14 3.14.4-1.hum1, python3.11 3.11.15-4.hum1, python3.12 3.12.13-3.hum1, python3.13 3.13.13-1.hum1, python3-idle 3.14.4-1.hum1, +22 morefixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:7661
-
Red Hat Update Infrastructure 5 rhui5 1768221100, rhui5 1768221107, rhui5 1768296285, rhui5 1768377012, rhui5/rhua-rhel9 1779798222, rhui5/rhua-tp-rhel9 1787241260, +2 morefixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.” RHSA-2026:0685
-
Red Hat Ceph Storage 8 rhceph 1768902743, rhceph 1768903190, rhceph 1768903749, rhceph 1768907469, rhceph 1768915405 Red Hat Update Infrastructure 5 rhui5/cds-rhel9 1779798159, rhui5/cds-tp-rhel9 1787241206, rhui5/haproxy-rhel9 1779798164, rhui5/cds-kubernetes-tp-rhel9 1787241211not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 1.8 | CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| CNA | 4.0 | 1.8 | CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libpython | <3.9.25 >=3.10.0, <3.10.20 >=3.11.0, <3.11.15 >=3.12.0, <3.12.13 >=3.13.0, <3.13.10 >=3.14.0, <3.14.1 |
3.9.25 3.10.20 3.11.15 3.12.13 3.13.10 3.14.1 |
| bitnami | python | <3.9.25 >=3.10.0, <3.10.20 >=3.11.0, <3.11.15 >=3.12.0, <3.12.13 >=3.13.0, <3.13.10 >=3.14.0, <3.14.1 |
3.9.25 3.10.20 3.11.15 3.12.13 3.13.10 3.14.1 |
| bitnami | python-min | <3.9.25 >=3.10.0, <3.10.20 >=3.11.0, <3.11.15 >=3.12.0, <3.12.13 >=3.13.0, <3.13.10 >=3.14.0, <3.14.1 |
3.9.25 3.10.20 3.11.15 3.12.13 3.13.10 3.14.1 |
Affected products
- Python Software Foundation CPython
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c
patch
-
github.com
/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84
patch
-
github.com
/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca
patch
-
github.com
/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742
patch
-
github.com
/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba
patch
-
github.com
/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c
patch
-
github.com
/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427
patch
-
mail.python.org
/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/
vendor-advisory, third-party-advisory, advisory
-
github.com
/python/cpython/issues/136065
issue-tracking, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-6075
web
Sources
- CVE List CVE-2025-6075
- NVD CVE-2025-6075
- OSV BIT-libpython-2025-6075
- OSV BIT-python-2025-6075
- OSV BIT-python-min-2025-6075
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.