Virtual environment (venv) activation scripts don't quote paths
Summary
Virtual environment (venv) activation scripts don't quote paths
Original description
The description as published by the source.
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.
Affected packages
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2024-9287 python3 Fixed in: 3.11.11-r0
- BellSoft Alpaquita BELL-CVE-2024-9287 python3 Fixed in: 3.11.11-r0
- Debian DEBIAN-CVE-2024-9287 pypy3 Fixed in: 7.3.5+dfsg-2+deb11u4
References
- advisory mail.python.org
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- report github.com
- web nvd.nist.gov
- web security.netapp.com
- web lists.debian.org
- web lists.debian.org