1.8
LOW CVSS 4.0
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
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
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
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
Validate user input to prevent performance degradation from environment variable expansion.
  • Sanitize all user-controlled input.
  • Avoid expanding user-controlled variables directly.
  • Implement input validation routines.
  • Update to a secure version if available.
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/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 1.8
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability