Server side template injection In python3
Description
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
alpine v3.22 | 3.12.8-r0 | ||
debian 12 | 3.11.2-6+deb12u5 | ||
alpine v3.18 | 3.11.11-r0 | ||
alpine v3.19 | 3.11.11-r0 | ||
alpine v3.20 | 3.12.8-r0 | ||
alpine v3.21 | 3.12.8-r0 | ||
debian 12 | 7.3.11+dfsg-2+deb12u3 | ||
debian 13 | 7.3.17+dfsg-3 | ||
debian 14 | 7.3.17+dfsg-3 | ||
debian 13 | 3.13.1-1 |
1-10 of 28
10
Aliases
References