cbcvebase.
CVE-2024-9287
published 2024-10-22

CVE-2024-9287: 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…

PriorityP343high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.65%
46.9th percentile
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 aren't activated before being used (ie "./venv/bin/python") are not affected.

Affected

30 ranges· showing 25
VendorProductVersion rangeFixed in
debianpypy3< pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)
debianpython-virtualenv< python-virtualenv 20.26.6+ds-1 (forky)python-virtualenv 20.26.6+ds-1 (forky)
debianpython2.7< pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)
debianpython3.11< pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)
debianpython3.13< pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)
debianpython3.9< pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)pypy3 7.3.11+dfsg-2+deb12u3 (bookworm)
msrcazl3_python-virtualenv_20.25.0-3_on_azure_linux_3.0
msrcazl3_python3_3.12.3-5_on_azure_linux_3.0
msrcazl3_python3_3.12.9-1_on_azure_linux_3.0
msrcazl3_tensorflow_2.16.1-9_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_python-virtualenv_20.14.0-6_on_cbl_mariner_2.0
msrccbl2_python-virtualenv_20.26.6-1_on_cbl_mariner_2.0
msrccbl2_python3_3.9.19-11_on_cbl_mariner_2.0
msrccbl2_python3_3.9.19-13_on_cbl_mariner_2.0
pythonpython< 3.9.213.9.21
pythonpython
pythonpython>= 3.10.0 < 3.10.163.10.16
pythonpython>= 3.11.0 < 3.11.113.11.11
pythonpython>= 3.12.0 < 3.12.83.12.8
pythonpython>= 3.13.0 < 3.13.13.13.1
python_software_foundationcpython< 3.9.213.9.21
python_software_foundationcpython>= 3.10.0 < 3.10.163.10.16
python_software_foundationcpython>= 3.11.0 < 3.11.113.11.11

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv4.05.3MEDIUMCVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/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:Green
ghsa5.3MEDIUM
osv7.8HIGH
vendor_msrc8.4HIGH
vendor_debian7.8HIGH
vendor_oracle7.8MEDIUM
vendor_redhat7.8HIGH
vendor_ubuntu3.7LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.