CVE-2025-6075

Quadratic complexity in os.path.expandvars() with user-controlled template

Published Oct 31, 2025 CVSS 4.0 · 1.8 Low EPSS < 1% KEV · Not listed
Description
If the value passed to os.path.expandvars() is user-controlled a
performance degradation is possible when expanding environment
variables.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4445-1 python3.9 security update
Ubuntu USN Ubuntu USN USN-7886-1 Python vulnerabilities
Ubuntu USN Ubuntu USN USN-7886-2 Python vulnerabilities
Ubuntu USN Ubuntu USN USN-8614-1 Python vulnerabilities
History
Type Values Removed Values Added
First Time appeared Python python
CPEs cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*
Vendors & Products Python python
Metrics cvssV3_1

{'score': 4.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
First Time appeared Python Software Foundation
Python Software Foundation cpython
CPEs cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:*
Vendors & Products Python Software Foundation
Python Software Foundation cpython
References
Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
First Time appeared Python
Python cpython
Vendors & Products Python
Python cpython
Type Values Removed Values Added
Weaknesses CWE-400
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Title Quadratic complexity in os.path.expandvars() with user-controlled template
References
Metrics cvssV4_0

{'score': 1.8, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
PSF
Published
Updated
Jul 31, 2026, 2:01 PM
Reserved
Jun 13, 2025, 3:05 PM
Status
Analyzed
Published
Oct 31, 2025, 5:15 PM
Modified
Oct 7, 2026, 9:10 PM
Severity
Low
Public date
Oct 31, 2025, 4:41 PM