Resource exhaustion in Python
CVE-2025-6075
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.001 (2.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 3rd percentile — 2.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.001 · newest: 0.001 · change: 0.000
Affected products
- Python — versions 3.15.0
- Python Software Foundation Cpython — versions 3.10.0, 3.14.0, 0
Weakness classification (CWE)
References
- github.com/python/cpython/issues/136065 (issue-tracking, Issue Tracking, Vendor Advisory)
- mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6U… (vendor-advisory, Third Party Advisory)
- github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c (Patch, patch)
- github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84 (Patch, patch)
- github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca (Patch, patch)
- github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742 (Patch, patch)
- github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba (Patch, patch)
- github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c (Patch, patch)
- github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427 (Patch, patch)
Frequently asked questions
- What is CVE-2025-6075?
- CVE-2025-6075 is a medium-severity vulnerability in Python, classified under Uncontrolled Resource Consumption. CVSS score: 5.5/10. Published 2025-10-31.
- How severe is CVE-2025-6075?
- Medium severity. CVSS v3 base score is 5.5 out of 10.