CVE-2024-9287
MEDIUM
MEDIUM
Priority: 0.03
BB Relevance:
21/100
Published: 2024-10-22
Modified: 2026-10-30
First seen: 2026-10-30
Status: active
Attack Surface
Low Complexity
Conf. Impact
Integ. Impact
CVSS Vector Breakdown
AV:
Local
AC:
Low
PR:
High
UI:
Active
S:
X
AT:
Present
VC:
High
VI:
High
VA:
None
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.
Weakness Classification (2)
Affected Software (8)
| Vendor | Product | Version |
|---|---|---|
| Python Software Foundation | CPython | 0 < 3.9.21 |
| Python Software Foundation | CPython | 3.10.0 < 3.10.16 |
| Python Software Foundation | CPython | 3.11.0 < 3.11.11 |
| Python Software Foundation | CPython | 3.12.0 < 3.12.8 |
| Python Software Foundation | CPython | 3.13.0 < 3.13.1 |
| Python Software Foundation | CPython | 3.14.0a1 < 3.14.0a2 |
| python | python | < 3.9.21 |
| python | python | 3.14.0 |
References & Advisories (12)
vendor-advisory
patch
patch
patch
patch
patch
patch
patch
issue-tracking