Vulnerability Monitor

The vendors, products, and vulnerabilities you care about

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


Published

2024-10-22T17:15:06.697

Last Modified

2025-04-25T23:15:16.573

Status

Modified

Source

[email protected]

Severity

CVSSv3.1: 7.8 (HIGH)

Weaknesses
  • Type: Secondary
    CWE-428
  • Type: Primary
    CWE-77

Affected Vendors & Products
Type Vendor Product Version/Range Vulnerable?
Application python python < 3.9.21 Yes
Application python python < 3.10.16 Yes
Application python python < 3.11.11 Yes
Application python python < 3.12.8 Yes
Application python python < 3.13.1 Yes
Application python python 3.14.0 Yes

References