First published: Tue Oct 22 2024(Updated: )
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.
Credit: cna@python.org
Affected Software | Affected Version | How to fix |
---|---|---|
debian/python2.7 | 2.7.18-8+deb11u1 | |
debian/python3.11 | <=3.11.2-6+deb12u4<=3.11.2-6+deb12u3 | |
debian/python3.12 | <=3.12.7-3 | |
debian/python3.13 | <=3.13.0-2 | |
debian/python3.9 | <=3.9.2-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.