Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942077 (CVE-2024-9287) - dev-lang/python: Virtual environment (venv) activation scripts don't quote paths
Summary: dev-lang/python: Virtual environment (venv) activation scripts don't quote paths
Status: CONFIRMED
Alias: CVE-2024-9287
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Security
URL: https://mail.python.org/archives/list...
Whiteboard: A2 [upstream/ebuild]
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-24 13:37 UTC by Christopher Fore
Modified: 2024-10-24 13:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Fore 2024-10-24 13:37:51 UTC
CVE-2024-9287:

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 virtual environment 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.



3.14 PR: https://github.com/python/cpython/pull/124712
3.13 PR: https://github.com/python/cpython/pull/125813
3.12 is awaiting a PR.