Skip to content
Fencer Intel
medium 5.5

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 Fencer

Vendor 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-rhel9
    +2 more products
    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
    affected: workaround, no fix available “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.”
  • Red Hat Ceph Storage 8 rhceph 1769512383
    fixed: 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 1767904573
    fixed: 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 more
    fixed: 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_7
    fixed: 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_2
    fixed: 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.15
    fixed: 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.14
    fixed: 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 more
  • 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_7
    fixed: 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_2
    fixed: 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.15
    fixed: 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.14
    fixed: 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 more
    fixed: 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_2
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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 1787241211
    not 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

Sources

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.