Quadratic complexity in os.path.expandvars() with user-controlled template
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2025-6075US | medium5.5 | — | ||
If the value passed to os.path.expandvars() is user-controlled a
performance degradation is possible when expanding environment
variables. | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8cFIX
- https://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427FIX
- https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84FIX
- https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebcaFIX
- https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742FIX
- https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1baFIX
- https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5cFIX
- https://github.com/python/cpython/issues/136065ADVISORY
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan