Python Improper Neutralization of Special Elements used in a Command (Command Injection) Vulnerability - CVE-2024-9287 - Vulnerability Database

Python Improper Neutralization of Special Elements used in a Command (Command Injection) Vulnerability - CVE-2024-9287

High
Reference: CVE-2024-9287
Title: Python Improper Neutralization of Special Elements used in a Command (Command Injection) Vulnerability
Overview:

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 quotactivationquot scripts (ie quotsource venv/bin/activatequot). 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 aren39t activated before being used (ie quot./venv/bin/pythonquot) are not affected.