Fedora Account System
Red Hat Associate
Red Hat Customer
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process. virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the builtin creator calls ensure_dir() for executable, library, and package directories, and ensure_dir() accepts an existing symlink to a directory because exists() follows it. Interpreter creation, seed installation, and activation generation then write through the linked parent outside the requested destination when another local account prepared the tree and the invoking user can access the target. The --clear option removes the planted tree first, while ordinary creation reaches it; arbitrary attacker-selected output bytes are not established. This issue is fixed in version 21.14.9.
Only the activation scripts are vendored (and modified) in uv from virtualenv. Since this flaw doesn’t lie in the activation scripts, it can’t affect uv.
Since bug 2561913 turned out to be reproducible in uv despite not involving activation scripts (perhaps due to similar design flaws in separate implementations), I’m reopening this for further triaging.
seems applicable to uv indeed
Reported to uv security contact and got a reply: This does not constitute vulnerability within uv’s attacker and threat models Public upstream bug: https://github.com/astral-sh/uv/issues/23055