Skip to content

CVE-2025-6075 Quadratic complexity in os.path.expandvars() with user-controlled template

LowCVSS 1.8 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

If the value passed to os.path.expandvars() is user-controlled a
performance degradation is possible when expanding environment
variables.

Upgrade path

18 packages: 10 fixed, 1 partially fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/pypy3(Debian 12) = 7.3.11+dfsg-2; = 7.3.11+dfsg-2+deb12u1; = 7.3.11+dfsg-2+deb12u2; = 7.3.11+dfsg-2+deb12u3 +29 more No fix listed No fix yet
debian/pypy3(Debian 13) = 7.3.19+dfsg-2; = 7.3.20+dfsg-1; = 7.3.20+dfsg-2; = 7.3.20+dfsg-3 +11 more No fix listed No fix yet
ubuntu/pypy3(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/pypy3(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/pypy3(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/pypy3(Ubuntu 26.10) All versions No fix listed No fix yet
ubuntu/python2.7(Ubuntu 22.04) All versions No fix listed No fix yet
cbl-mariner python3(CBL-Mariner 2.0) < 3.9.19-17; All versions 3.9.19-17 Partially fixed
azure linux python3(Azure Linux 3.0) < 3.12.9-6 3.12.9-6 Fixed
debian/pypy3(Debian 14) < 7.3.21+dfsg-1; = 7.3.19+dfsg-2; = 7.3.20+dfsg-1; = 7.3.20+dfsg-2 +2 more 7.3.21+dfsg-1 Fixed
debian/python3.11(Debian 12) < 3.11.2-6+deb12u7; = 3.11.2-6; = 3.11.2-6+deb12u1; = 3.11.2-6+deb12u2 +4 more 3.11.2-6+deb12u7 Fixed
debian/python3.13(Debian 13) < 3.13.5-2+deb13u1; = 3.13.5-2 3.13.5-2+deb13u1 Fixed
debian/python3.14(Debian 14) < 3.14.2-1; = 3.14.0-1; = 3.14.0-2; = 3.14.0-3 +10 more 3.14.2-1 Fixed
python < 3.9.0; = 3.15.0-alpha1; >= 3.13.1, < 3.13.11; >= 3.14.0, < 3.14.1 3.9.0, 3.13.11, 3.14.1 Fixed
Python Software Foundation CPython < 3.9.25; >= 3.10.0, < 3.10.20; >= 3.11.0, < 3.11.15; >= 3.12.0, < 3.12.13 +3 more 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1, 3.15.0a2 Fixed
ubuntu/python3.10(Ubuntu 22.04) < 3.10.12-1~22.04.12 3.10.12-1~22.04.12 Fixed
ubuntu/python3.11(Ubuntu 22.04) < 3.11.0~rc1-1~22.04.1~esm6 3.11.0~rc1-1~22.04.1~esm6 Fixed
ubuntu/python3.12(Ubuntu 24.04) < 3.12.3-1ubuntu0.9 3.12.3-1ubuntu0.9 Fixed

Affected products

ProductAffected versionsFixed in
azure linux python3(Azure Linux:3.0) < 3.12.9-6 3.12.9-6
cbl-mariner python3(CBL-Mariner:2.0) All versions No fix listed
cbl-mariner python3(CBL-Mariner:2.0) < 3.9.19-17 3.9.19-17
debian/pypy3(Debian:12) All versions No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u1 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u2 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u3 No fix listed
debian/pypy3(Debian:12) = 7.3.12+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.12~rc1+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.12~rc2+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.13+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.14+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.15+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.16+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.16+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.18+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.18+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.19+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.19+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-2 No fix listed
Show 75 more
ProductAffected versionsFixed in
debian/pypy3(Debian:12) = 7.3.20+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-4 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-4 No fix listed
debian/pypy3(Debian:12) = 7.3.22+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.23+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.23+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 8.0.0+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 8.0.1+dfsg-1 No fix listed
debian/pypy3(Debian:13) All versions No fix listed
debian/pypy3(Debian:13) = 7.3.19+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-3 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-4 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-3 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-4 No fix listed
debian/pypy3(Debian:13) = 7.3.22+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.23+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.23+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 8.0.0+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 8.0.1+dfsg-1 No fix listed
debian/pypy3(Debian:14) < 7.3.21+dfsg-1 7.3.21+dfsg-1
debian/pypy3(Debian:14) = 7.3.19+dfsg-2 No fix listed
debian/pypy3(Debian:14) = 7.3.20+dfsg-1 No fix listed
debian/pypy3(Debian:14) = 7.3.20+dfsg-2 No fix listed
debian/pypy3(Debian:14) = 7.3.20+dfsg-3 No fix listed
debian/pypy3(Debian:14) = 7.3.20+dfsg-4 No fix listed
debian/python3.11(Debian:12) < 3.11.2-6+deb12u7 3.11.2-6+deb12u7
debian/python3.11(Debian:12) = 3.11.2-6 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u1 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u2 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u3 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u4 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u5 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u6 No fix listed
debian/python3.13(Debian:13) < 3.13.5-2+deb13u1 3.13.5-2+deb13u1
debian/python3.13(Debian:13) = 3.13.5-2 No fix listed
debian/python3.14(Debian:14) < 3.14.2-1 3.14.2-1
debian/python3.14(Debian:14) = 3.14.0-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0-2 No fix listed
debian/python3.14(Debian:14) = 3.14.0-3 No fix listed
debian/python3.14(Debian:14) = 3.14.0-4 No fix listed
debian/python3.14(Debian:14) = 3.14.0-5 No fix listed
debian/python3.14(Debian:14) = 3.14.0~a7-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0~b1-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0~b2-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0~b3-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0~b4-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0~rc1-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0~rc2-1 No fix listed
debian/python3.14(Debian:14) = 3.14.0~rc3-1 No fix listed
Python Software Foundation CPython < 3.9.25 3.9.25
Python Software Foundation CPython >= 3.10.0, < 3.10.20 3.10.20
Python Software Foundation CPython >= 3.11.0, < 3.11.15 3.11.15
Python Software Foundation CPython >= 3.12.0, < 3.12.13 3.12.13
Python Software Foundation CPython >= 3.13.0, < 3.13.10 3.13.10
Python Software Foundation CPython >= 3.14.0, < 3.14.1 3.14.1
Python Software Foundation CPython >= 3.15.0a1, < 3.15.0a2 3.15.0a2
ubuntu/pypy3(Ubuntu:22.04) All versions No fix listed
ubuntu/python3.10(Ubuntu:22.04) < 3.10.12-1~22.04.12 3.10.12-1~22.04.12
ubuntu/python2.7(Ubuntu:22.04) All versions No fix listed
ubuntu/python3.11(Ubuntu:22.04) < 3.11.0~rc1-1~22.04.1~esm6 3.11.0~rc1-1~22.04.1~esm6
ubuntu/pypy3(Ubuntu:24.04) All versions No fix listed
ubuntu/python3.12(Ubuntu:24.04) < 3.12.3-1ubuntu0.9 3.12.3-1ubuntu0.9
ubuntu/pypy3(Ubuntu:26.04) All versions No fix listed
ubuntu/pypy3(Ubuntu:26.10) All versions No fix listed
python < 3.9.0 3.9.0
python >= 3.13.1, < 3.13.11 3.13.11
python >= 3.14.0, < 3.14.1 3.14.1
python = 3.15.0-alpha1 No fix listed

References