CVE-2024-9287Unquoted Search Path or Element in Software Foundation Cpython

Severity
5.3MEDIUMNVD
EPSS
0.1%
top 80.14%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 22
Latest updateJul 15

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 use

CVSS 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

Affected Packages2 packages

CVEListV5python_software_foundation/cpython3.10.03.10.16+5
NVDpython/python3.10.03.10.16+5

Patches

🔴Vulnerability Details

6
OSV
python3.5, python3.8 regression2025-03-24
OSV
python3.5, python3.8 vulnerabilities2025-03-12
GHSA
virtualenv allows command injection through activation scripts for a virtual environment2024-11-24
OSV
CVE-2024-9287: A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted prop2024-10-22
CVEList
Virtual environment (venv) activation scripts don't quote paths2024-10-22

📋Vendor Advisories

9
Oracle
Oracle Oracle Communications Applications Risk Matrix: Core (Python) — CVE-2024-92872025-07-15
Ubuntu
Python vulnerabilities2025-05-06
Ubuntu
Python vulnerabilities2025-03-12
Red Hat
virtualenv: potential command injection via virtual environment activation scripts2024-11-24
Ubuntu
Python vulnerability2024-11-19
CVE-2024-9287 — Unquoted Search Path or Element | cvebase