Skip to main content

Virtualenv

23 CVEs product

Monthly

CVE-2026-115586 Oct 23, 19:34 PyPI HIGH PATCH GHSA This Week

Command injection in virtualenv's bash activator lets an attacker-supplied --prompt value be stored unescaped in PS1 and executed as the user who activates the environment. Affected are versions 21.14.9 through 21.14.12 (per EUVD, 21.14.9 to < 21.14.13); the regression was introduced by the 21.14.9 rewrite of the prompt block and is fixed in 21.14.13. Triggering it requires activation in bash while promptvars is disabled and POSIX mode is off (a documented performance tweak found in some ~/.bashrc files and prompt wrappers), followed by re-enabling prompt expansion with shopt -s promptvars, set -o posix, or an interactive child bash that inherits the exported PS1; default-option activation is inert, and the advisory documents a reproducible proof-of-concept. No CISA KEV listing or other confirmation of active exploitation was provided, and the priority label for this issue is 'this_week'.

Python Command Injection Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
7.1
EPSS
0.2%
CVE-2026-113776 Oct 20, 22:19 PyPI HIGH PATCH GHSA This Week

OS command injection in virtualenv 20.26.6 through 21.14.2 lets an attacker who controls the environment's destination path or the --prompt value smuggle shell metacharacters into generated activation scripts. Because the template engine substitutes placeholders one key at a time over the whole template, a path or prompt containing the literal text __VIRTUAL_NAME__, __VIRTUAL_ENV__, or __VIRTUAL_PROMPT__ gets rewritten again during a later pass, and the later value's quoting can close the earlier literal and execute the remaining path when a victim activates the environment with bash, fish, xonsh, or activate_this.py. Per the CVSS vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H this is a local, low-complexity issue requiring no attacker privileges but mandatory victim interaction, yielding full confidentiality, integrity, and availability impact; no public exploit code or CISA KEV entry was identified at time of analysis, and the vendor-released fix is version 21.14.2.

Python Command Injection Virtualenv
NVD GitHub
CVSS 3.1
7.8
EPSS
0.2%
CVE-2026-113732 Oct 20, 22:19 PyPI HIGH PATCH GHSA This Week

Command injection in virtualenv's fish-shell activator allows an attacker who controls the environment directory path, the --prompt argument, or the VIRTUALENV_PROMPT variable to escape the single-quoted fish literal in the generated activate.fish and execute arbitrary commands when the victim sources that file. All virtualenv releases prior to 21.14.2 that emit a fish activator are affected; bash, zsh and other activators are not. Exploitation requires local user interaction (sourcing the file) and a crafted value containing a backslash immediately before a quote, so this is a conditionally gated local code-injection flaw rather than a remotely reachable issue; no public exploit code or CISA KEV entry was identified at time of analysis, and the vendor-released fix is version 21.14.2.

Python Command Injection Virtualenv
NVD GitHub
CVSS 3.1
7.8
EPSS
0.2%
CVE-2026-113726 Oct 20, 22:19 PyPI HIGH PATCH GHSA This Week

Command injection in virtualenv's activation script allows an attacker who controls the virtual environment name (directory name, the --prompt argument, or the VIRTUALENV_PROMPT variable) to execute arbitrary commands in a victim's zsh shell each time the prompt is redrawn. Affected are virtualenv releases prior to 21.14.4; from 21.13.0 through 21.14.3 the PS1 escaping logic only ran when BASH_VERSION was set, leaving zsh with the raw, unescaped prompt value, and earlier releases left the environment name unescaped entirely. Exploitation requires a zsh interactive shell with the PROMPT_SUBST option enabled and a local victim activating the crafted environment (CVSS 3.1 7.8, AV:L/UI:R/PR:N), so unauthenticated remote exploitation is not possible; bash and default zsh configurations without PROMPT_SUBST are not affected, and no public exploit has been identified at time of analysis.

Python Command Injection Virtualenv
NVD GitHub
CVSS 3.1
7.8
EPSS
0.2%
CVE-2026-113725 Oct 20, 19:56 PyPI HIGH PATCH GHSA This Week

Command injection in virtualenv's bash activation script prior to 21.14.7 allows a crafted environment name or --prompt value to execute shell commands each time bash renders the prompt. The flaw arises because the script escapes the name for only one of bash's two PS1 processing passes, so a backslash before $(...) or backticks survives as command substitution; exploitation is local and requires the victim to activate the malicious environment while prompt modification is enabled. No public exploit identified at time of analysis, and virtualenv 21.14.7 contains the vendor fix.

Python Command Injection Virtualenv Pypa
NVD GitHub VulDB
CVSS 3.1
7.8
EPSS
0.2%
CVE-2026-113723 Oct 20, 19:51 PyPI HIGH PATCH GHSA This Week

Caller-influenced prompt text in virtualenv's bash activation script prior to 21.14.9 can be re-expanded by bash as executable shell syntax, so a crafted --prompt value (or an environment name feeding it) can run arbitrary commands in the victim's shell when the environment is activated and the prompt is drawn. The flaw is local and interaction-dependent: the attacker must first supply the prompt string, the victim must source bin/activate under bash and cause a redraw, and bash must be in a state that re-expands PS1 (promptvars enabled, POSIX mode, or an older BASH_COMPAT level) - zsh and POSIX shells such as dash are not affected. The project shipped a fix in 21.14.9 via upstream PR #3418 and commit 5f48d711; there is no EPSS score, no CISA KEV listing, and no public exploit identified at time of analysis, and the CVSS 4.0 vector (7.1, AV:L/AC:H/AT:P/PR:N/UI:A) reflects that high preconditions bar.

Python Command Injection Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
7.1
EPSS
0.1%
CVE-2026-113722 Oct 20, 19:48 PyPI HIGH PATCH GHSA This Week

Command injection in PyPA virtualenv before 21.14.9 lets an attacker who controls the destination path of a virtual environment execute arbitrary commands with the victim's privileges the next time the victim runs a generated POSIX console-script launcher. The flaw arises because virtualenv's ScriptMakerCustom and pip seeding pass an incompletely quoted interpreter path to distlib's ScriptMaker, which emits a /bin/sh wrapper whose double-quoted interpreter path still expands command substitutions and backticks whenever the path contains a space or tab, or yields a shebang longer than 127 bytes. No public exploit code was identified at time of analysis and the issue is not in CISA KEV; the CVSS 3.1 score is 7.8 (AV:L/AC:L/PR:N/UI:R), reflecting that the attacker needs local influence over the environment destination and the victim must manually run the launcher - environment creation and activation alone do not trigger execution.

Python Command Injection Virtualenv Pypa
NVD GitHub
CVSS 3.1
7.8
EPSS
0.2%
CVE-2026-113718 Oct 20, 19:39 PyPI HIGH PATCH GHSA This Week

A code injection flaw in PyPA virtualenv before 21.14.9 lets attacker-influenced non-ASCII characters in the xonsh prompt or environment destination path break out of a generated Python literal and inject statements into activate.xsh. Exploitation is highly conditional: it requires the xonsh shell, the script being read under a legacy multibyte codec such as GBK or Big5 via $XONSH_ENCODING, attacker control over the prompt or path data, and the victim actively sourcing the generated script, so realistic risk is moderate rather than urgent. The issue is fixed in 21.14.9, which writes prompt and path literals as ASCII escapes; no public exploit code was identified at time of analysis.

RCE Python Code Injection Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
7.1
EPSS
0.1%
CVE-2026-102937 Sep 29, 20:56 PyPI HIGH PATCH GHSA This Week

Command injection in PyPA virtualenv before 21.7.12 allows an attacker who controls the environment's prompt value - via the --prompt argument, the VIRTUALENV_PROMPT environment variable, or the equivalent configuration setting - to run arbitrary cmd.exe commands on Windows with the privileges of the user who activates the generated environment. The flaw is confined to the batch activator: BatchActivator.quote() returns the prompt text unchanged, so a supplied double quote closes the `set "VAR=value"` assignment in activate.bat and any following cmd.exe operators are executed as live syntax when the victim runs the script. Coverage is limited by a local attack vector, Windows-only exposure, and mandatory victim interaction (generating and then activating the environment); no public exploit was identified at time of analysis, and a vendor fix is available in 21.7.12.

Windows Python Command Injection Microsoft Virtualenv +1
NVD GitHub VulDB
CVSS 4.0
7.3
EPSS
0.1%
CVE-2026-102930 Sep 29, 20:53 PyPI HIGH POC PATCH GHSA This Week

virtualenv versions prior to 21.7.12 cache and seed pip/setuptools wheels without verifying their bytes, so an attacker who controls the wheel delivery path can substitute a different wheel under the requested distribution, version, and filename and have it injected into every environment virtualenv subsequently creates. The flaw is exploitable unauthenticated but requires an active man-in-the-middle position, a compromised index, or a stale/poisoned mirror, and requires a user to actually create or seed a virtual environment. No public exploit code was identified at time of analysis, and the digest check is intentionally skipped whenever PIP_INDEX_URL, PIP_EXTRA_INDEX_URL, or PIP_INDEX points at a custom index - meaning custom-index users remain unverified even after upgrading.

Python Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
7.7
EPSS
0.2%
CVE-2026-102925 Sep 29, 20:50 PyPI HIGH PATCH GHSA This Week

Command injection in the bash, zsh, and fish activation scripts generated by virtualenv releases prior to 21.7.13 lets a crafted virtual environment path or interpreter Tcl/Tk library path execute arbitrary commands with the privileges of any user who sources the activate script. The root cause is double quoting: values already escaped by shlex.quote are embedded inside an additional quoted context, so the surplus quotes terminate the data-only quoted run and leave shell metacharacters parsed as commands - reaching __VIRTUAL_ENV__ in bash/zsh when a relocated environment's recorded directory is absent, and __TCL_LIBRARY__/__TK_LIBRARY__ in fish. Exploitation requires attacker control of the affected path string plus the victim sourcing the script (CVSS 3.1 score 7.8, AV:L/AC:L/PR:N/UI:R, CWE-78 OS command injection); no public exploit identified at time of analysis, and the flaw is fixed in virtualenv 21.7.13 per PyPA advisory GHSA-p58f-9548-mpm2.

RCE Python Command Injection Virtualenv Pypa
NVD GitHub
CVSS 3.1
7.8
EPSS
0.2%
CVE-2026-113724 Oct 20, 19:53 PyPI MEDIUM PATCH GHSA This Month

Symlink following in virtualenv's safe_delete() deletion-error handler (all versions prior to 21.14.9) lets a local attacker widen the permissions of a victim-owned file located outside the environment being created or removed. When removal of an entry inside a read-only directory fails, the handler reads mode bits with os.lstat() and then calls os.chmod() on the same path, which resolves symlinks - so a planted link causes S_IWUSR to be added to an out-of-scope target the victim owns and can chmod, provided that target starts out non-writable. Exploitation requires local access, a specific read-only-directory/symlink filesystem layout, a genuine deletion failure and the victim actually running virtualenv, so practical risk is low; no public exploit code has been identified at time of analysis and the issue is not in CISA KEV.

Python Information Disclosure Virtualenv Pypa
NVD GitHub VulDB
CVSS 3.1
4.5
EPSS
0.1%
CVE-2026-113721 Oct 20, 19:46 PyPI MEDIUM PATCH GHSA This Month

Symlink-following file writes in virtualenv before 21.14.9 let a second, unprivileged local account redirect generated environment files outside the requested tree (CWE-59). When the destination contains a pre-planted dangling symlink or an extra hard link at paths such as pyvenv.cfg, activation scripts, .gitignore, CACHEDIR.TAG, import-hook .pth files, or bin/ interpreter files, virtualenv creation writes constrained generated text through the link with the invoking user's permissions, producing limited integrity and availability impact outside the environment. Exploitation requires local access, a separate hostile account able to write into the destination, and timing against the victim's creation run (CVSS 3.1 AV:L/AC:H/PR:L, base 4.5); no public exploit was identified at time of analysis and the issue is not in CISA KEV. Affected users should upgrade to 21.14.9.

Python Information Disclosure Virtualenv Pypa
NVD GitHub
CVSS 3.1
4.5
EPSS
0.1%
CVE-2026-113720 Oct 20, 19:43 PyPI MEDIUM PATCH GHSA This Month

virtualenv before 21.14.9 can propagate permissive filesystem modes from its app-data cache into newly created environments when the COPY seeder is used, allowing a local attacker with a separate account to alter and execute seeded package code such as pip/__init__.py as the environment owner. Exploitation requires a shared multi-user POSIX host, a cache already populated under a permissive umask, a traversable destination parent, and the victim later creating and running an environment; the attacker cannot force the earlier umask. No public exploit code or CISA KEV entry was identified at time of analysis.

Python Information Disclosure Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
4.4
EPSS
0.1%
CVE-2026-113715 Oct 20, 19:42 PyPI LOW PATCH GHSA Monitor

Configuration injection in PyPA virtualenv's stdlib 'venv' creator allows a caller who controls the destination pathname to smuggle arbitrary keys into the generated pyvenv.cfg by embedding a Unicode line-boundary character (such as U+2028) in that path. Successful injection can set 'include-system-site-packages' to true - weakening environment isolation - or alter 'home' so the interpreter loads standard-library files from a different location, provided the attacker also controls that location. Only the non-default stdlib venv creator (--creator venv) is affected; the builtin creator does not use the vulnerable readback path. This is a low-priority, defense-in-depth issue rather than an urgent threat (CVSS 4.0 base 2.0 / assessed CVSS 3.1 AV:L/AC:H/PR:N/UI:R, all impacts Low), fixed in virtualenv 21.14.9; no public exploit code was identified at time of analysis and there is no KEV listing.

Python Code Injection Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
2.0
EPSS
0.1%
CVE-2026-113719 Oct 20, 19:42 PyPI MEDIUM PATCH GHSA This Month

Path traversal in PyPA virtualenv's seed-package cleanup lets a local, low-privileged attacker delete files outside the target environment when a destination directory is reused and already contains distribution metadata planted by another account. Affected are virtualenv releases prior to 21.14.9 that use the embedded app-data seeding path; during environment creation, PipInstall._uninstall_previous_version() trusts top_level.txt and RECORD entries and joins them to site-packages without verifying containment, so relative traversal, absolute paths, or symlinked parent directories reach outside the environment root. Impact is limited to integrity and availability of files the invoking user can already delete (assessed C:N/I:L/A:L), exploitation requires a prior foothold to plant the metadata and a re-run against the same destination, and fresh environments or creation with --clear never enter the vulnerable path; no public exploit code was identified at time of analysis and the issue is not in CISA KEV.

Python Path Traversal Virtualenv Pypa
NVD GitHub
CVSS 3.1
4.5
EPSS
0.1%
CVE-2026-113717 Oct 20, 19:22 PyPI LOW PATCH GHSA Monitor

Integrity-verification bypass in PyPA virtualenv before 21.14.9 allows a non-PyPI package index response to be consumed for a bundled seeder wheel without the default PyPI SHA-256 digest comparison ever being performed. The condition is narrow: it only arises when virtualenv is invoked with --seeder pip and --download, index environment variables are left unset so the default-index comparison policy is still active, and a non-PyPI index is configured that offers a candidate matching the bundled distribution name and version. Per our assessment (CVSS:3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L) this is unauthenticated but high-complexity and user-initiated, does not defeat TLS, does not give an attacker control of the index response, and produces only a low, integrity-focused outcome; no public exploit code has been identified at time of analysis and there is no KEV listing. The vendor fixed the flaw in 21.14.9 by staging downloads in a private temporary directory and installing pinned wheels with --no-index.

Python Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
2.3
EPSS
0.3%
CVE-2026-113716 Oct 20, 19:18 PyPI MEDIUM PATCH GHSA This Month

Symlink-following during environment creation in PyPA virtualenv versions prior to 21.14.9 allows a second local account to redirect writes into a pre-planted directory symlink (or Windows junction) so that interpreter creation, seed installation, and activation generation land outside the requested destination. Only the invoking user's own creation run is affected, the attacker must already control a local account and have planted the link where the executable, library, or package directory will be built, and arbitrary attacker-chosen bytes at the target are not established, which is why the assessed impact is limited (CVSS 4.5, AV:L/AC:H/PR:L). Default (non---clear) creation is the vulnerable path, since --clear wipes the planted tree first; no public exploit code was identified at time of analysis and the issue is not tied to confirmed active exploitation. Upgrade to 21.14.9 to close it.

Python Information Disclosure Virtualenv Pypa
NVD GitHub
CVSS 3.1
4.5
EPSS
0.1%
CVE-2026-113714 Oct 20, 19:17 PyPI LOW PATCH GHSA Monitor

Wheel-cache poisoning in virtualenv 21.14.8 can leave a rejected, attacker-supplied archive in the reusable wheel cache, where a later seeding operation may select it without verification. The forged pip 'Saved' line path requires an attacker-controlled package index, default-index digest comparison, and knowledge of the absolute path to the genuine bundled wheel; the separate rejected-cache-file variant requires control over downloaded data or archive selection. The issue is low severity, does not bypass TLS or establish control of default PyPI, and is fixed in 21.14.9; no public exploit code is identified in the available data.

Authentication Bypass Python Virtualenv
NVD GitHub VulDB
CVSS 4.0
2.3
EPSS
0.2%
CVE-2026-113713 Oct 20, 19:17 PyPI MEDIUM PATCH GHSA This Month

virtualenv 21.14.8 and 21.14.9 can leave a newly created Python environment pointing at temporary app-data seed packages that virtualenv deletes once environment creation finishes, so pip and other seeded packages effectively depend on a cache path the environment owner no longer controls. Reaching this state requires a non-default local configuration: symlink seeding must be turned on through the VIRTUALENV_SYMLINK_APP_DATA environment variable or a virtualenv.ini configuration file (the command-line --symlink-app-data flag is already suppressed for transient app-data), combined with transient app-data such as VIRTUALENV_OVERRIDE_APP_DATA pointing at an unusable cache. Impact is local only and needs an authenticated low-privileged account plus a specific setup and passive user interaction, which is why the score is only 4.4 (CVSS 4.0) and severity is low-to-moderate; no public exploit code was identified at time of analysis, and the flaw is fixed in 21.14.10.

Python Information Disclosure Virtualenv
NVD GitHub VulDB
CVSS 4.0
4.4
EPSS
0.1%
CVE-2026-102938 Sep 29, 20:58 PyPI MEDIUM POC PATCH GHSA This Month

Configuration injection in PyPA virtualenv before 21.7.11 lets a line boundary embedded in a prompt value inject extra keys into the generated pyvenv.cfg, potentially overriding the 'home' key so a subsequent environment resolves to an attacker-chosen base interpreter. The flaw is conditional rather than remotely exploitable: it is assessed as local (AV:L) with user interaction (UI:R per the independent assessment, UI:P in the CVSS 4.0 vector) and only has security consequence when the prompt value originates outside the operator's trust boundary - for example an automated venv-creation pipeline or CI job that derives --prompt or VIRTUALENV_PROMPT from an untrusted project name or shared configuration; a prompt typed directly by the operator merely corrupts the operator's own environment. No public exploit code and no confirmed active exploitation were identified at time of analysis, and EPSS/KEV signals were not provided; version 21.7.11 fixes the issue, and the referenced upstream PR adds fuzz and property tests asserting the invariant that a written value can never be read back as extra configuration keys.

Python Virtualenv Pypa
NVD GitHub VulDB
CVSS 4.0
5.8
EPSS
0.1%
CVE-2026-22702 Jan 10, 07:16 PyPI MEDIUM PATCH This Month

Virtualenv versions up to 20.36.1 is affected by improper link resolution before file access (CVSS 4.5).

Python Race Condition Red Hat Virtualenv Suse
NVD GitHub
CVSS 3.1
4.5
EPSS
0.0%
CVE-2024-53899 Nov 24, 16:15 PyPI HIGH POC PATCH This Week

virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Public exploit code available.

Command Injection Virtualenv
NVD GitHub
CVSS 3.1
7.8
EPSS
1.6%
EPSS 0% CVSS 7.1
HIGH PATCH This Week

Command injection in virtualenv's bash activator lets an attacker-supplied --prompt value be stored unescaped in PS1 and executed as the user who activates the environment. Affected are versions 21.14.9 through 21.14.12 (per EUVD, 21.14.9 to < 21.14.13); the regression was introduced by the 21.14.9 rewrite of the prompt block and is fixed in 21.14.13. Triggering it requires activation in bash while promptvars is disabled and POSIX mode is off (a documented performance tweak found in some ~/.bashrc files and prompt wrappers), followed by re-enabling prompt expansion with shopt -s promptvars, set -o posix, or an interactive child bash that inherits the exported PS1; default-option activation is inert, and the advisory documents a reproducible proof-of-concept. No CISA KEV listing or other confirmation of active exploitation was provided, and the priority label for this issue is 'this_week'.

Python Command Injection Virtualenv +1
NVD GitHub VulDB
EPSS 0% CVSS 7.8
HIGH PATCH This Week

OS command injection in virtualenv 20.26.6 through 21.14.2 lets an attacker who controls the environment's destination path or the --prompt value smuggle shell metacharacters into generated activation scripts. Because the template engine substitutes placeholders one key at a time over the whole template, a path or prompt containing the literal text __VIRTUAL_NAME__, __VIRTUAL_ENV__, or __VIRTUAL_PROMPT__ gets rewritten again during a later pass, and the later value's quoting can close the earlier literal and execute the remaining path when a victim activates the environment with bash, fish, xonsh, or activate_this.py. Per the CVSS vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H this is a local, low-complexity issue requiring no attacker privileges but mandatory victim interaction, yielding full confidentiality, integrity, and availability impact; no public exploit code or CISA KEV entry was identified at time of analysis, and the vendor-released fix is version 21.14.2.

Python Command Injection Virtualenv
NVD GitHub
EPSS 0% CVSS 7.8
HIGH PATCH This Week

Command injection in virtualenv's fish-shell activator allows an attacker who controls the environment directory path, the --prompt argument, or the VIRTUALENV_PROMPT variable to escape the single-quoted fish literal in the generated activate.fish and execute arbitrary commands when the victim sources that file. All virtualenv releases prior to 21.14.2 that emit a fish activator are affected; bash, zsh and other activators are not. Exploitation requires local user interaction (sourcing the file) and a crafted value containing a backslash immediately before a quote, so this is a conditionally gated local code-injection flaw rather than a remotely reachable issue; no public exploit code or CISA KEV entry was identified at time of analysis, and the vendor-released fix is version 21.14.2.

Python Command Injection Virtualenv
NVD GitHub
EPSS 0% CVSS 7.8
HIGH PATCH This Week

Command injection in virtualenv's activation script allows an attacker who controls the virtual environment name (directory name, the --prompt argument, or the VIRTUALENV_PROMPT variable) to execute arbitrary commands in a victim's zsh shell each time the prompt is redrawn. Affected are virtualenv releases prior to 21.14.4; from 21.13.0 through 21.14.3 the PS1 escaping logic only ran when BASH_VERSION was set, leaving zsh with the raw, unescaped prompt value, and earlier releases left the environment name unescaped entirely. Exploitation requires a zsh interactive shell with the PROMPT_SUBST option enabled and a local victim activating the crafted environment (CVSS 3.1 7.8, AV:L/UI:R/PR:N), so unauthenticated remote exploitation is not possible; bash and default zsh configurations without PROMPT_SUBST are not affected, and no public exploit has been identified at time of analysis.

Python Command Injection Virtualenv
NVD GitHub
EPSS 0% CVSS 7.8
HIGH PATCH This Week

Command injection in virtualenv's bash activation script prior to 21.14.7 allows a crafted environment name or --prompt value to execute shell commands each time bash renders the prompt. The flaw arises because the script escapes the name for only one of bash's two PS1 processing passes, so a backslash before $(...) or backticks survives as command substitution; exploitation is local and requires the victim to activate the malicious environment while prompt modification is enabled. No public exploit identified at time of analysis, and virtualenv 21.14.7 contains the vendor fix.

Python Command Injection Virtualenv +1
NVD GitHub VulDB
EPSS 0% CVSS 7.1
HIGH PATCH This Week

Caller-influenced prompt text in virtualenv's bash activation script prior to 21.14.9 can be re-expanded by bash as executable shell syntax, so a crafted --prompt value (or an environment name feeding it) can run arbitrary commands in the victim's shell when the environment is activated and the prompt is drawn. The flaw is local and interaction-dependent: the attacker must first supply the prompt string, the victim must source bin/activate under bash and cause a redraw, and bash must be in a state that re-expands PS1 (promptvars enabled, POSIX mode, or an older BASH_COMPAT level) - zsh and POSIX shells such as dash are not affected. The project shipped a fix in 21.14.9 via upstream PR #3418 and commit 5f48d711; there is no EPSS score, no CISA KEV listing, and no public exploit identified at time of analysis, and the CVSS 4.0 vector (7.1, AV:L/AC:H/AT:P/PR:N/UI:A) reflects that high preconditions bar.

Python Command Injection Virtualenv +1
NVD GitHub VulDB
EPSS 0% CVSS 7.8
HIGH PATCH This Week

Command injection in PyPA virtualenv before 21.14.9 lets an attacker who controls the destination path of a virtual environment execute arbitrary commands with the victim's privileges the next time the victim runs a generated POSIX console-script launcher. The flaw arises because virtualenv's ScriptMakerCustom and pip seeding pass an incompletely quoted interpreter path to distlib's ScriptMaker, which emits a /bin/sh wrapper whose double-quoted interpreter path still expands command substitutions and backticks whenever the path contains a space or tab, or yields a shebang longer than 127 bytes. No public exploit code was identified at time of analysis and the issue is not in CISA KEV; the CVSS 3.1 score is 7.8 (AV:L/AC:L/PR:N/UI:R), reflecting that the attacker needs local influence over the environment destination and the victim must manually run the launcher - environment creation and activation alone do not trigger execution.

Python Command Injection Virtualenv +1
NVD GitHub
EPSS 0% CVSS 7.1
HIGH PATCH This Week

A code injection flaw in PyPA virtualenv before 21.14.9 lets attacker-influenced non-ASCII characters in the xonsh prompt or environment destination path break out of a generated Python literal and inject statements into activate.xsh. Exploitation is highly conditional: it requires the xonsh shell, the script being read under a legacy multibyte codec such as GBK or Big5 via $XONSH_ENCODING, attacker control over the prompt or path data, and the victim actively sourcing the generated script, so realistic risk is moderate rather than urgent. The issue is fixed in 21.14.9, which writes prompt and path literals as ASCII escapes; no public exploit code was identified at time of analysis.

RCE Python Code Injection +2
NVD GitHub VulDB
EPSS 0% CVSS 7.3
HIGH PATCH This Week

Command injection in PyPA virtualenv before 21.7.12 allows an attacker who controls the environment's prompt value - via the --prompt argument, the VIRTUALENV_PROMPT environment variable, or the equivalent configuration setting - to run arbitrary cmd.exe commands on Windows with the privileges of the user who activates the generated environment. The flaw is confined to the batch activator: BatchActivator.quote() returns the prompt text unchanged, so a supplied double quote closes the `set "VAR=value"` assignment in activate.bat and any following cmd.exe operators are executed as live syntax when the victim runs the script. Coverage is limited by a local attack vector, Windows-only exposure, and mandatory victim interaction (generating and then activating the environment); no public exploit was identified at time of analysis, and a vendor fix is available in 21.7.12.

Windows Python Command Injection +3
NVD GitHub VulDB
EPSS 0% CVSS 7.7
HIGH POC PATCH This Week

virtualenv versions prior to 21.7.12 cache and seed pip/setuptools wheels without verifying their bytes, so an attacker who controls the wheel delivery path can substitute a different wheel under the requested distribution, version, and filename and have it injected into every environment virtualenv subsequently creates. The flaw is exploitable unauthenticated but requires an active man-in-the-middle position, a compromised index, or a stale/poisoned mirror, and requires a user to actually create or seed a virtual environment. No public exploit code was identified at time of analysis, and the digest check is intentionally skipped whenever PIP_INDEX_URL, PIP_EXTRA_INDEX_URL, or PIP_INDEX points at a custom index - meaning custom-index users remain unverified even after upgrading.

Python Virtualenv Pypa
NVD GitHub VulDB
EPSS 0% CVSS 7.8
HIGH PATCH This Week

Command injection in the bash, zsh, and fish activation scripts generated by virtualenv releases prior to 21.7.13 lets a crafted virtual environment path or interpreter Tcl/Tk library path execute arbitrary commands with the privileges of any user who sources the activate script. The root cause is double quoting: values already escaped by shlex.quote are embedded inside an additional quoted context, so the surplus quotes terminate the data-only quoted run and leave shell metacharacters parsed as commands - reaching __VIRTUAL_ENV__ in bash/zsh when a relocated environment's recorded directory is absent, and __TCL_LIBRARY__/__TK_LIBRARY__ in fish. Exploitation requires attacker control of the affected path string plus the victim sourcing the script (CVSS 3.1 score 7.8, AV:L/AC:L/PR:N/UI:R, CWE-78 OS command injection); no public exploit identified at time of analysis, and the flaw is fixed in virtualenv 21.7.13 per PyPA advisory GHSA-p58f-9548-mpm2.

RCE Python Command Injection +2
NVD GitHub
EPSS 0% CVSS 4.5
MEDIUM PATCH This Month

Symlink following in virtualenv's safe_delete() deletion-error handler (all versions prior to 21.14.9) lets a local attacker widen the permissions of a victim-owned file located outside the environment being created or removed. When removal of an entry inside a read-only directory fails, the handler reads mode bits with os.lstat() and then calls os.chmod() on the same path, which resolves symlinks - so a planted link causes S_IWUSR to be added to an out-of-scope target the victim owns and can chmod, provided that target starts out non-writable. Exploitation requires local access, a specific read-only-directory/symlink filesystem layout, a genuine deletion failure and the victim actually running virtualenv, so practical risk is low; no public exploit code has been identified at time of analysis and the issue is not in CISA KEV.

Python Information Disclosure Virtualenv +1
NVD GitHub VulDB
EPSS 0% CVSS 4.5
MEDIUM PATCH This Month

Symlink-following file writes in virtualenv before 21.14.9 let a second, unprivileged local account redirect generated environment files outside the requested tree (CWE-59). When the destination contains a pre-planted dangling symlink or an extra hard link at paths such as pyvenv.cfg, activation scripts, .gitignore, CACHEDIR.TAG, import-hook .pth files, or bin/ interpreter files, virtualenv creation writes constrained generated text through the link with the invoking user's permissions, producing limited integrity and availability impact outside the environment. Exploitation requires local access, a separate hostile account able to write into the destination, and timing against the victim's creation run (CVSS 3.1 AV:L/AC:H/PR:L, base 4.5); no public exploit was identified at time of analysis and the issue is not in CISA KEV. Affected users should upgrade to 21.14.9.

Python Information Disclosure Virtualenv +1
NVD GitHub
EPSS 0% CVSS 4.4
MEDIUM PATCH This Month

virtualenv before 21.14.9 can propagate permissive filesystem modes from its app-data cache into newly created environments when the COPY seeder is used, allowing a local attacker with a separate account to alter and execute seeded package code such as pip/__init__.py as the environment owner. Exploitation requires a shared multi-user POSIX host, a cache already populated under a permissive umask, a traversable destination parent, and the victim later creating and running an environment; the attacker cannot force the earlier umask. No public exploit code or CISA KEV entry was identified at time of analysis.

Python Information Disclosure Virtualenv +1
NVD GitHub VulDB
EPSS 0% CVSS 2.0
LOW PATCH Monitor

Configuration injection in PyPA virtualenv's stdlib 'venv' creator allows a caller who controls the destination pathname to smuggle arbitrary keys into the generated pyvenv.cfg by embedding a Unicode line-boundary character (such as U+2028) in that path. Successful injection can set 'include-system-site-packages' to true - weakening environment isolation - or alter 'home' so the interpreter loads standard-library files from a different location, provided the attacker also controls that location. Only the non-default stdlib venv creator (--creator venv) is affected; the builtin creator does not use the vulnerable readback path. This is a low-priority, defense-in-depth issue rather than an urgent threat (CVSS 4.0 base 2.0 / assessed CVSS 3.1 AV:L/AC:H/PR:N/UI:R, all impacts Low), fixed in virtualenv 21.14.9; no public exploit code was identified at time of analysis and there is no KEV listing.

Python Code Injection Virtualenv +1
NVD GitHub VulDB
EPSS 0% CVSS 4.5
MEDIUM PATCH This Month

Path traversal in PyPA virtualenv's seed-package cleanup lets a local, low-privileged attacker delete files outside the target environment when a destination directory is reused and already contains distribution metadata planted by another account. Affected are virtualenv releases prior to 21.14.9 that use the embedded app-data seeding path; during environment creation, PipInstall._uninstall_previous_version() trusts top_level.txt and RECORD entries and joins them to site-packages without verifying containment, so relative traversal, absolute paths, or symlinked parent directories reach outside the environment root. Impact is limited to integrity and availability of files the invoking user can already delete (assessed C:N/I:L/A:L), exploitation requires a prior foothold to plant the metadata and a re-run against the same destination, and fresh environments or creation with --clear never enter the vulnerable path; no public exploit code was identified at time of analysis and the issue is not in CISA KEV.

Python Path Traversal Virtualenv +1
NVD GitHub
EPSS 0% CVSS 2.3
LOW PATCH Monitor

Integrity-verification bypass in PyPA virtualenv before 21.14.9 allows a non-PyPI package index response to be consumed for a bundled seeder wheel without the default PyPI SHA-256 digest comparison ever being performed. The condition is narrow: it only arises when virtualenv is invoked with --seeder pip and --download, index environment variables are left unset so the default-index comparison policy is still active, and a non-PyPI index is configured that offers a candidate matching the bundled distribution name and version. Per our assessment (CVSS:3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L) this is unauthenticated but high-complexity and user-initiated, does not defeat TLS, does not give an attacker control of the index response, and produces only a low, integrity-focused outcome; no public exploit code has been identified at time of analysis and there is no KEV listing. The vendor fixed the flaw in 21.14.9 by staging downloads in a private temporary directory and installing pinned wheels with --no-index.

Python Virtualenv Pypa
NVD GitHub VulDB
EPSS 0% CVSS 4.5
MEDIUM PATCH This Month

Symlink-following during environment creation in PyPA virtualenv versions prior to 21.14.9 allows a second local account to redirect writes into a pre-planted directory symlink (or Windows junction) so that interpreter creation, seed installation, and activation generation land outside the requested destination. Only the invoking user's own creation run is affected, the attacker must already control a local account and have planted the link where the executable, library, or package directory will be built, and arbitrary attacker-chosen bytes at the target are not established, which is why the assessed impact is limited (CVSS 4.5, AV:L/AC:H/PR:L). Default (non---clear) creation is the vulnerable path, since --clear wipes the planted tree first; no public exploit code was identified at time of analysis and the issue is not tied to confirmed active exploitation. Upgrade to 21.14.9 to close it.

Python Information Disclosure Virtualenv +1
NVD GitHub
EPSS 0% CVSS 2.3
LOW PATCH Monitor

Wheel-cache poisoning in virtualenv 21.14.8 can leave a rejected, attacker-supplied archive in the reusable wheel cache, where a later seeding operation may select it without verification. The forged pip 'Saved' line path requires an attacker-controlled package index, default-index digest comparison, and knowledge of the absolute path to the genuine bundled wheel; the separate rejected-cache-file variant requires control over downloaded data or archive selection. The issue is low severity, does not bypass TLS or establish control of default PyPI, and is fixed in 21.14.9; no public exploit code is identified in the available data.

Authentication Bypass Python Virtualenv
NVD GitHub VulDB
EPSS 0% CVSS 4.4
MEDIUM PATCH This Month

virtualenv 21.14.8 and 21.14.9 can leave a newly created Python environment pointing at temporary app-data seed packages that virtualenv deletes once environment creation finishes, so pip and other seeded packages effectively depend on a cache path the environment owner no longer controls. Reaching this state requires a non-default local configuration: symlink seeding must be turned on through the VIRTUALENV_SYMLINK_APP_DATA environment variable or a virtualenv.ini configuration file (the command-line --symlink-app-data flag is already suppressed for transient app-data), combined with transient app-data such as VIRTUALENV_OVERRIDE_APP_DATA pointing at an unusable cache. Impact is local only and needs an authenticated low-privileged account plus a specific setup and passive user interaction, which is why the score is only 4.4 (CVSS 4.0) and severity is low-to-moderate; no public exploit code was identified at time of analysis, and the flaw is fixed in 21.14.10.

Python Information Disclosure Virtualenv
NVD GitHub VulDB
EPSS 0% CVSS 5.8
MEDIUM POC PATCH This Month

Configuration injection in PyPA virtualenv before 21.7.11 lets a line boundary embedded in a prompt value inject extra keys into the generated pyvenv.cfg, potentially overriding the 'home' key so a subsequent environment resolves to an attacker-chosen base interpreter. The flaw is conditional rather than remotely exploitable: it is assessed as local (AV:L) with user interaction (UI:R per the independent assessment, UI:P in the CVSS 4.0 vector) and only has security consequence when the prompt value originates outside the operator's trust boundary - for example an automated venv-creation pipeline or CI job that derives --prompt or VIRTUALENV_PROMPT from an untrusted project name or shared configuration; a prompt typed directly by the operator merely corrupts the operator's own environment. No public exploit code and no confirmed active exploitation were identified at time of analysis, and EPSS/KEV signals were not provided; version 21.7.11 fixes the issue, and the referenced upstream PR adds fuzz and property tests asserting the invariant that a written value can never be read back as extra configuration keys.

Python Virtualenv Pypa
NVD GitHub VulDB
EPSS 0% CVSS 4.5
MEDIUM PATCH This Month

Virtualenv versions up to 20.36.1 is affected by improper link resolution before file access (CVSS 4.5).

Python Race Condition Red Hat +2
NVD GitHub
EPSS 2% CVSS 7.8
HIGH POC PATCH This Week

virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Public exploit code available.

Command Injection Virtualenv
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy