CVE-2025-6075
Quadratic complexity in os.path.expandvars() with user-controlled template
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
INFO
Published Date :
Oct. 31, 2025, 5:15 p.m.
Last Modified :
Oct. 31, 2025, 6:15 p.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2025-6075
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 4.0 | LOW | 28c92f92-d60d-412d-b760-e73465c3df22 | ||||
| CVSS 4.0 | LOW | [email protected] |
Solution
- Sanitize all user-controlled input.
- Avoid expanding user-controlled variables directly.
- Implement input validation routines.
- Update to a secure version if available.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-6075.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-6075 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-6075
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-6075 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-6075 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Oct. 31, 2025
Action Type Old Value New Value Added Reference https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c Added Reference https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84 Added Reference https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca Added Reference https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742 Added Reference https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba Added Reference https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 31, 2025
Action Type Old Value New Value Added CWE CWE-400 -
New CVE Received by [email protected]
Oct. 31, 2025
Action Type Old Value New Value Added Description If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables. Added CVSS V4.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 Added Reference https://github.com/python/cpython/issues/136065 Added Reference https://mail.python.org/archives/list/[email protected]/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/