CVE-2025-6075Published Oct 31, 2025 · Oct 31Updated Nov 11
Quadratic complexity in os.path.expandvars() with user-controlled template
Python Software Foundation CPython
Low1.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation CPython |
| No fix yet |
Original description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.