High severity · published Oct 22, 2024
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, allowing the creator to…
7.8
CVSS
0.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 51% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
Python · Python
before 3.9.21; 3.10.0 before 3.10.16; 3.11.0 before 3.11.11; 3.12.0 before 3.12.8; 3.13.0 before 3.13.1; 3.14.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-9287
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-9287
Patch
https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7
Patch
https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db
Patch
https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8
Patch
https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97
Patch
https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b
Patch
https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483
More from Python
9.8
CVE-2022-48565
An XML External Entity (XXE) issue was discovered in Python through 3.9.1
9.8
CVE-2022-37454
The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate…
9.8
CVE-2021-29921
In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string
9.8
CVE-2021-3177
Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept…
9.8
CVE-2020-27619
In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP
