CVE-2025-6075: Quadratic complexity in os.path.expandvars() with user-controlled template
Vulnerability summary
CVE-2025-6075 is a medium (CVSS 5.5) Uncontrolled Resource Consumption vulnerability in python software foundation cpython. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4.3% of scored vulnerabilities.
Not severe (CVSS 1.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 43 · Related 32Timeline
- 31-10-2025PublishedVulnerability first disclosed.
- 31-07-2026Last modifiedVulnerability information updated.
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
CVSS metrics
8 scores · 6 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated1.8LowCVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated1.8LowCVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated1.8LowCVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- NVDNIST1.8LowCVSS: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
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.15% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu13 products
- pypy3All versions (No fix recorded)
- python2.7All versions (No fix recorded) | < 2.7.12-1ubuntu0~16.04.18+esm21
- python3.10< 3.10.12-1~22.04.12
- python3.11< 3.11.0~rc1-1~22.04.1~esm6
- python3.12< 3.12.3-1ubuntu0.9
Chainguard6 products
- python-3.10< 3.10.19-r2
- python-3.11< 3.11.14-r2
- python-3.12< 3.12.12-r2
- python-3.13< 3.13.9-r2
- python-3.14< 3.14.0-r8
Wolfi5 products
- python-3.10< 3.10.19-r2
- python-3.11< 3.11.14-r2
- python-3.12< 3.12.12-r2
- python-3.13< 3.13.9-r2
- python-3.14< 3.14.0-r8
Debian4 products
- pypy3All versions (No fix recorded) | < 7.3.21+dfsg-1
- python3.11< 3.11.2-6+deb12u7
- python3.13< 3.13.11-1 | < 3.13.5-2+deb13u1
- python3.14< 3.14.2-1
Opensuse4 products
- python-base&distro=openSUSE Leap 15.6< 2.7.18-150000.99.1
- python-doc&distro=openSUSE Leap 15.6< 2.7.18-150000.99.1
- python315&distro=openSUSE Tumbleweed< 3.15.0~a1-2.1
- python&distro=openSUSE Leap 15.6< 2.7.18-150000.99.1
Suse2 products
- python-base&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 2.7.18-150000.99.1
- python&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 2.7.18-150000.99.1
Python1 product
- python< 3.9.0 | ≥ 3.13.1, < 3.13.11 | ≥ 3.14.0, < 3.14.1 | 3.15.0:alpha1
Python software foundation1 product
- cpython< 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.15.0a1, < 3.15.0a2
8 vendors · 36 products
References
21 links- mail.python.org/archives/list/[email protected]/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/Vendor AdvisoryREPORTAdvisoryThird Party Advisory
Show all 21 references
- github.com/python/cpythonPACKAGE