ADVISORIES

Red Hat VEX

RHVEX-CVE-2024-9287

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

Moderate No fix available CVE-2024-9287

Details

A vulnerability has been found in the Python venv module and CLI. Path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts, for example, "source venv/bin/activate". This flaw allows attacker-controlled virtual environments to run commands when the virtual environment is activated.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:7python
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python-debug
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python-libs
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python-test
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python-tools
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python3
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python3-debug
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python3-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python3-idle
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python3-libs
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python3-test
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python3-tkinter
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7tkinter
All versions, no fix (out of support scope)

References