Original description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Affected software
- Python ≥ 3.13.1 < 3.13.11< 3.9.0= 3.15.0≥ 3.14.0 < 3.14.1 Fixed in: 3.13.11, 3.9.0, 3.14.1 exact match
Details
- Published
- 2025-11-01
- Last modified
- 2026-07-31
- CVSS vector
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- EPSS (30-day exploit probability)
- 0.15% (percentile 4)
References
- cve.org/CVE-2025-6075
- nvd.nist.gov/vuln/detail/CVE-2025-6075
- github.com/python/cpython/issues/136065
- mail.python.org/archives/list/[email protected]/thread/IUP5QJ6D4KK6ULHOMPC7DPNK...
- github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c
- github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84
- github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca
- github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742
- github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba
- github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c
- github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.