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.
Metrics
Affected Vendors & Products
References
History
Mon, 04 Nov 2024 17:45:00 +0000
Wed, 30 Oct 2024 16:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
|
Fri, 25 Oct 2024 02:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
| |
Metrics |
threat_severity
|
cvssV3_1
|
Tue, 22 Oct 2024 18:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Python
Python cpython |
|
CPEs | cpe:2.3:a:python:cpython:*:*:*:*:*:*:*:* | |
Vendors & Products |
Python
Python cpython |
|
Metrics |
ssvc
|
Tue, 22 Oct 2024 16:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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. | |
Title | Virtual environment (venv) activation scripts don't quote paths | |
Weaknesses | CWE-428 | |
References |
| |
Metrics |
cvssV4_0
|
MITRE
Status: PUBLISHED
Assigner: PSF
Published: 2024-10-22T16:34:39.210Z
Updated: 2024-11-04T17:30:43.520Z
Reserved: 2024-09-27T14:48:44.181Z
Link: CVE-2024-9287
Vulnrichment
Updated: 2024-10-22T17:13:06.936Z
NVD
Status : Awaiting Analysis
Published: 2024-10-22T17:15:06.697
Modified: 2024-11-04T18:15:05.627
Link: CVE-2024-9287
Redhat