You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
OR
*cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions up to (excluding) 3.9.21
*cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.10.0 up to (excluding) 3.10.16
*cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.11.0 up to (excluding) 3.11.11
*cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.12.0 up to (excluding) 3.12.8
*cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.13.0 up to (excluding) 3.13.1
*cpe:2.3:a:python:python:3.14.0:alpha1:*:*:*:*:*:*
Changed
Reference Type
https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 No Types Assigned
CVE Modified by Python Software Foundation11/04/2024 1:15:05 PM
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 Python Software Foundation10/30/2024 12:15:05 PM
Action
Type
Old Value
New Value
Added
Reference
Python Software Foundation https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 [No types assigned]
New CVE Received from Python Software Foundation10/22/2024 1:15:06 PM
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
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
Added
CWE
Python Software Foundation CWE-428
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]
Quick Info
CVE Dictionary Entry: CVE-2024-9287 NVD
Published Date: 10/22/2024 NVD
Last Modified: 06/17/2026
Source: Python Software Foundation