virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, ViaTemplateActivator._generate() removes an existing output...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:14.04:LTSpython-virtualenv |
All versions→ Not listed |
Not listed |
| Ubuntu:16.04:LTSpython-virtualenv |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSpython-virtualenv |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSpython-virtualenv |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:22.04:LTSpython-virtualenv |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:24.04:LTSpython-virtualenv |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10python-virtualenv |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSpython-virtualenv |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, ViaTemplateActivator._generate() removes an existing output only when Path.exists() is true, allowing a dangling symlink to survive and redirect generated activation content, while PyEnvCfg.write() opens pyvenv.cfg without first replacing an existing symbolic or hard link. Another local account that prepares final entries inside the destination can therefore cause environment creation to create or overwrite files outside the requested tree with constrained virtualenv-generated content and the invoking user's permissions. The destination parent must remain controlled by the environment owner during creation; concurrent parent-directory replacement is a separate concern. This issue is fixed in version 21.14.9.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report github.com
- report github.com