CVE-2024-9287CWE-428

Virtual environment (venv) activation scripts don't quote paths

Medium · published October 22, 2024

CVSS v4.0
5.3
EPSS
1%
Percentile
50.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
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
EPSS
0.00648 · 50.4th percentile
Weakness
CWE-428 · Unquoted Search Path or Element
Published
2024-10-22T16:34Z
EPSS history
Timeline
  • 22 OCT 16:34Z
    Virtual environment (venv) activation scripts don't quote paths
    cvelistv5