CVE-2024-9287
"Python CPython venv Command Injection Vulnerability"
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.
INFO
Published Date :
Oct. 22, 2024, 5:15 p.m.
Last Modified :
Nov. 4, 2024, 6:15 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
Exploitability Score :
Affected Products
The following products are affected by CVE-2024-9287
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-9287
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-9287
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-9287
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Nov. 04, 2024
Action Type Old Value New Value Added Reference Python Software Foundation https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 [No types assigned] Added Reference Python Software Foundation https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db [No types assigned] Added Reference Python Software Foundation https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8 [No types assigned] Added Reference Python Software Foundation https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97 [No types assigned] -
CVE Modified by [email protected]
Oct. 30, 2024
Action Type Old Value New Value Added Reference Python Software Foundation https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 [No types assigned] -
CVE Received by [email protected]
Oct. 22, 2024
Action Type Old Value New Value 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. Added Reference Python Software Foundation https://github.com/python/cpython/issues/124651 [No types assigned] Added Reference Python Software Foundation https://github.com/python/cpython/pull/124712 [No types assigned] Added Reference Python Software Foundation https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/ [No types assigned] Added CWE Python Software Foundation CWE-428 Added CVSS V4.0 Python Software Foundation CVSS: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
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-9287
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-9287
weaknesses.