A vulnerability has been found in the CPython venv
module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment activation scripts (ie source venv/bin/activate). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which arent activated before being used (ie ./venv/bin/python) are not affected.
The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Python | Python | * | 3.9.21 (excluding) |
Python | Python | 3.10.0 (including) | 3.10.16 (excluding) |
Python | Python | 3.11.0 (including) | 3.11.11 (excluding) |
Python | Python | 3.12.0 (including) | 3.12.8 (excluding) |
Python | Python | 3.13.0 (including) | 3.13.1 (excluding) |
Python | Python | 3.14.0-alpha1 (including) | 3.14.0-alpha1 (including) |
Red Hat Enterprise Linux 8 | RedHat | python3-0:3.6.8-69.el8_10 | * |
Red Hat Enterprise Linux 8 | RedHat | python3.11-0:3.11.11-1.el8_10 | * |
Red Hat Enterprise Linux 8 | RedHat | python3.12-0:3.12.8-1.el8_10 | * |
Red Hat Enterprise Linux 8 | RedHat | python3-0:3.6.8-69.el8_10 | * |
Red Hat Enterprise Linux 9 | RedHat | python3.12-0:3.12.5-2.el9_5.2 | * |
Red Hat Enterprise Linux 9 | RedHat | python3.9-0:3.9.21-1.el9_5 | * |
Red Hat Enterprise Linux 9 | RedHat | python3.11-0:3.11.9-7.el9_5.2 | * |
Red Hat Enterprise Linux 9 | RedHat | python3.9-0:3.9.21-1.el9_5 | * |
Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | python3.9-0:3.9.18-3.el9_4.7 | * |
Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | python3.12-0:3.12.1-4.el9_4.5 | * |
Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | python3.11-0:3.11.7-1.el9_4.7 | * |
Python3.10 | Ubuntu | jammy | * |
Python3.11 | Ubuntu | esm-apps/jammy | * |
Python3.11 | Ubuntu | jammy | * |
Python3.12 | Ubuntu | devel | * |
Python3.12 | Ubuntu | noble | * |
Python3.12 | Ubuntu | oracular | * |
Python3.13 | Ubuntu | oracular | * |
Python3.4 | Ubuntu | trusty/esm | * |
Python3.5 | Ubuntu | trusty/esm | * |
Python3.8 | Ubuntu | focal | * |