You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux archlinux 6.10.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 19 Aug 2024 17:02:39 +0000 x86_64 GNU/Linux
Like pypa/virtualenv#2768 the execution path itself is low-risk, but it enables many potential downstream attack vectors. Downstream projects that automatically initialize and activate venv at a controllable path (e.g. read from repo configuration file) could execute unexpected commands.
CPython versions tested on:
3.8, 3.9, 3.10, 3.11, 3.12, 3.13, CPython main branch
Bug report
Bug description:
Crafted paths break the script templates:
Like pypa/virtualenv#2768 the execution path itself is low-risk, but it enables many potential downstream attack vectors. Downstream projects that automatically initialize and activate
venvat a controllable path (e.g. read from repo configuration file) could execute unexpected commands.CPython versions tested on:
3.8, 3.9, 3.10, 3.11, 3.12, 3.13, CPython main branch
Operating systems tested on:
Linux
Linked PRs
venvactivation scripts #124712venvactivation scripts (GH-124712) #125813venvactivation scripts (GH-124712) #125947venvactivation scripts (GH-124712) #126185venvactivation scripts (GH-124712) (GH-126185) #126269venvactivation scripts (GH-124712) (GH-126185) (#126269) #126300venvactivation scripts (GH-124712) (GH-126185) (#126269) #126301