CVE-2025-6075
MEDIUM5.5EPSS 0.02%Quadratic complexity in os.path.expandvars() with user-controlled template
Published: 10/31/2025Modified: 5/16/2026
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Affected packages (8)
- Bitnami/libpythonfrom 0, < 3.9.25, >= 3.10.0, < 3.10.20, >= 3.11.0, < 3.11.15, >= 3.12.0, < 3.12.13, >= 3.13.0, < 3.13.10, >= 3.14.0, < 3.14.1
- Bitnami/pythonfrom 0, < 3.9.25, >= 3.10.0, < 3.10.20, >= 3.11.0, < 3.11.15, >= 3.12.0, < 3.12.13, >= 3.13.0, < 3.13.10, >= 3.14.0, < 3.14.1
- Bitnami/python-minfrom 0, < 3.9.25, >= 3.10.0, < 3.10.20, >= 3.11.0, < 3.11.15, >= 3.12.0, < 3.12.13, >= 3.13.0, < 3.13.10, >= 3.14.0, < 3.14.1
- Debian/pypy3from 0
- Debian/python3.11from 0, < 3.11.2-6+deb12u7
- Debian/python3.13from 0, < 3.13.5-2+deb13u1
- Debian/python3.14from 0, < 3.14.2-1
- Debian/python3.9from 0, < 3.9.2-1+deb11u4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
References (11)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-6075
- WEBhttps://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c
- WEBhttps://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427
- WEBhttps://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84
- WEBhttps://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca
- WEBhttps://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742
- WEBhttps://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba
- WEBhttps://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c
- WEBhttps://github.com/python/cpython/issues/136065
- WEBhttps://mail.python.org/archives/list/[email protected]/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2025-6075