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

Configuration 1 (hide)

OR cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.14.0:alpha1:*:*:*:*:*:*

History

03 Nov 2025, 23:17

Type Values Removed Values Added
References
  • () https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html -
  • () https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html -

Information

Published : 2024-10-22 17:15

Updated : 2025-11-03 23:17


NVD link : CVE-2024-9287

Mitre link : CVE-2024-9287

CVE.ORG link : CVE-2024-9287


JSON object : View

Products Affected

python

  • python
CWE
CWE-428

Unquoted Search Path or Element

CWE-77

Improper Neutralization of Special Elements used in a Command ('Command Injection')