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.
History

Mon, 04 Nov 2024 17:45:00 +0000


Wed, 30 Oct 2024 16:15:00 +0000


Fri, 25 Oct 2024 02:00:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N'}

threat_severity

Moderate


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

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


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

{'score': 5.3, 'vector': '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/U:Green'}


cve-icon 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

cve-icon Vulnrichment

Updated: 2024-10-22T17:13:06.936Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-10-22T17:15:06.697

Modified: 2024-11-04T18:15:05.627

Link: CVE-2024-9287

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-10-22T16:34:39Z

Links: CVE-2024-9287 - Bugzilla