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
{{ message }}
Repository navigation
[CVE-2024-9287] venv activation scripts do not quote strings properly #124651
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
Hey @y5c4l3, thanks for reporting this. We're going to treat this as a low-risk security issue. You or anyone else can submit a fix normally. If you have questions about this, send an email to security@python.org.
@sethmlarson Thanks for the reply! Could you please help me with a code review for this PR as well as #124155? The code owner for venv seems to be unavailable recently.
Activity
sethmlarson commentedon Sep 27, 2024
Hey @y5c4l3, thanks for reporting this. We're going to treat this as a low-risk security issue. You or anyone else can submit a fix normally. If you have questions about this, send an email to security@python.org.
y5c4l3 commentedon Sep 27, 2024
@sethmlarson Thanks for the reply! Could you please help me with a code review for this PR as well as #124155? The code owner for
venvseems to be unavailable recently.gh-124651: Quote template strings in `venv` activation scripts (GH-12…
pythongh-124651: Quote template strings in `venv` activation scripts (p…
[3.13] gh-124651: Quote template strings in `venv` activation scripts (…
gpshead commentedon Oct 22, 2024
can we keep this open until all of the security branch backports are done?
pythongh-124651: Quote template strings in `venv` activation scripts (p…
pythongh-124651: Quote template strings in `venv` activation scripts (p…
picnixz commentedon Oct 30, 2024
Do you want to backport it up to 3.9 as well? If so, don't forget to add the backport labels on the PR (for now, we only have 3.12+)
[3.12] gh-124651: Quote template strings in `venv` activation scripts (…
27 remaining items
vstinner commentedon Dec 13, 2024
It's a new issue caused by the security fix.
package/python3: security bump to version 3.11.11
pythongh-124651: Quote template strings in `venv` activation scripts (p…
CVE-2024-9287 [3.9] pythongh-124651: Quote template strings in `venv`…
CVE-2024-9287 [3.9] pythongh-124651: Quote template strings in `venv`…
CVE-2024-9287 [3.9] pythongh-124651: Quote template strings in `venv`…
Merge pull request #72 from ActiveState/BE-5258-cve-2024-9287-python-3-8
[3.9] pythongh-124651: Quote template strings in `venv` activation sc…
00443: pythongh-124651: Quote template strings in `venv` activation s…
venv should properly quote path names provided when creating a venv
venv should properly quote path names provided when creating a venv
00443: pythongh-124651: Quote template strings in `venv` activation s…
00443: pythongh-124651: Quote template strings in `venv` activation s…
00443: pythongh-124651: Quote template strings in `venv` activation s…