CVE-2025-6075
1.8low
Quadratic complexity in os.path.expandvars() with user-controlled template
- Severity
- 1.8low CVSS:4.0 by PSF
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PSF
- Also known as
- PSF-2025-13BIT-LIBPYTHON-2025-6075BIT-PYTHON-2025-6075BIT-PYTHON-MIN-2025-6075
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Python Software Foundation CPython | before 3.9.25, from 3.10.0 before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.10, from 3.14.0 before 3.14.1, from 3.15.0a1 before 3.15.0a2 | CVE List |
| https://github.com/python/cpython | before 2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c, before 631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84, before 892747b4cf0f95ba8beb51c0d0658bfaa381ebca, before 9ab89c026aa9611c4b0b67c288b8303a480fe742, before c8a5f3435c342964e0a432cc9fb448b7dbecd1ba, before f029e8db626ddc6e3a3beea4eff511a71aaceb5c, before 5dceb93486176e6b4a6d9754491005113eb23427 | Python Software Foundation |
| python python | before 3.9.0, from 3.13.1 before 3.13.11, from 3.14.0 before 3.14.1, 3.15.0 | NVD |
| libpython (Bitnami) | before 3.9.25, from 3.10.0 before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.10, from 3.14.0 before 3.14.1 | Bitnami Vulnerability Database |
| python (Bitnami) | before 3.9.25, from 3.10.0 before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.10, from 3.14.0 before 3.14.1 | Bitnami Vulnerability Database |
| python-min (Bitnami) | before 3.9.25, from 3.10.0 before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.10, from 3.14.0 before 3.14.1 | Bitnami Vulnerability Database |
All scores
| PSF | 1.8low CVSS:4.0 | 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 |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
NVD (es)
Si el valor pasado a os.path.expandvars() es controlado por el usuario, es posible una degradación del rendimiento al expandir variables de entorno.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-6075 changed 2026-07-31 | CVE Terms of Use |
| Python Software Foundation | PSF-2025-13 changed 2025-12-02 | CC-BY-4.0 |
| NVD | CVE-2025-6075 changed 2026-10-07 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2025-6075 changed 2026-09-10 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2025-6075 changed 2026-09-10 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2025-6075 changed 2026-09-10 | Apache-2.0 |