CVE-2024-9287

MEDIUM CVSS 4.0: 5.3 EPSS 0.65%
Updated Oct 30, 2026
Python
Parameter Value
CVSS 5.3 (MEDIUM)
Affected Versions 3.10.0 — 3.9.21
Fixed In 3.9.21
Type CWE-428, CWE-77 (Command Injection)
Vendor Python
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
High
Admin privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 6

Configuration From (including) Up to (excluding)
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
— 3.9.21
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.10.0 3.10.16
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.11.0 3.11.11
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.12.0 3.12.8
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.13.0 3.13.1
Python Python
cpe:2.3:a:python:python:3.14.0:alpha1:*:*:*:*:*:*
— —