CVE-2025-6075
Quadratic complexity in os.path.expandvars() with user-controlled template
- State
- Published
- Severity
- 1.8 Low
- Published
- Oct 31, 2025
- Updated
- Jul 31, 2026
- Reserved
- Jun 13, 2025
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 1.8 Low | 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 | PSF |
Weaknesses
- CWE-400 Uncontrolled Resource Consumption
Affected Products
| Product | Versions |
|---|---|
CPythonPython Software Foundation |
|
References
- https://github.com/python/cpython/issues/136065issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/vendor-advisory
- https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8cpatch
- https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84patch
- https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebcapatch
- https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742patch
- https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1bapatch
- https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5cpatch
- https://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427patch
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.