Skip to main content

Pypa

23 CVEs vendor

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-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-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-59890 Jul 08, 16:02 PyPI MEDIUM POC PATCH GHSA This Month

Setuptools prior to 83.0.0 fails to normalize Unicode filenames before matching them against MANIFEST.in exclusion patterns on macOS APFS and HFS+ filesystems, allowing files with NFD-normalized on-disk names to silently bypass NFC-encoded exclude, global-exclude, recursive-exclude, and prune directives and be packed into Python source distributions. Python package maintainers developing on macOS face a supply chain risk: sensitive files such as credentials, private keys, or environment configs that are correctly listed in MANIFEST.in for exclusion may still appear in tarballs published to PyPI or private registries. No public exploit has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog.

Authentication Bypass Python Apple Setuptools Pypa
NVD GitHub VulDB
CVSS 3.1
6.1
EPSS
0.3%
CVE-2023-5752 Oct 25, 18:17 PyPI LOW PATCH Monitor

When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the. Rated low severity (CVSS 3.3), this vulnerability is low attack complexity. This Command Injection vulnerability could allow attackers to inject arbitrary commands into system command execution.

Command Injection Pip Pypa
NVD GitHub
CVSS 3.1
3.3
EPSS
0.5%
CVE-2021-3572 Nov 10, 18:15 PyPI MEDIUM PATCH This Month

A flaw was found in python-pip in the way it handled Unicode separators in git references. Rated medium severity (CVSS 5.7), this vulnerability is remotely exploitable, low attack complexity.

Python Information Disclosure Oracle Pip Communications Cloud Native Core Network Function Cloud Native Environment +3
NVD VulDB
CVSS 3.1
5.7
EPSS
1.7%
CVE-2018-20225 May 08, 18:15 HIGH This Week

An issue was discovered in pip (all versions) because it installs the version with the highest version number, even if the user had intended to obtain a private package from a private index. Rated high severity (CVSS 7.8), this vulnerability is no authentication required, low attack complexity. No vendor patch available.

Information Disclosure Pip Pypa
NVD VulDB
CVSS 3.1
7.8
EPSS
1.7%
CVE-2014-8991 Nov 24, 15:59 PyPI LOW PATCH Monitor

pip 1.3 through 1.5.6 allows local users to cause a denial of service (prevention of package installation) by creating a /tmp/pip-build-* file for another user. Rated low severity (CVSS 2.1), this vulnerability is low attack complexity.

Denial Of Service Oracle Solaris Pip Pypa
NVD GitHub
CVSS 2.0
2.1
EPSS
0.1%
CVE-2013-1888 Aug 17, 06:54 PyPI LOW PATCH Monitor

pip before 1.3 allows local users to overwrite arbitrary files via a symlink attack on a file in the /tmp/pip-build temporary directory. Rated low severity (CVSS 2.1), this vulnerability is low attack complexity.

Information Disclosure Fedora Pip Fedoraproject Pypa
NVD GitHub
CVSS 2.0
2.1
EPSS
0.1%
CVE-2013-1629 Aug 06, 02:52 PyPI MEDIUM POC PATCH THREAT This Month

pip before 1.3 uses HTTP to retrieve packages from the PyPI repository, and does not perform integrity checks on package contents, which allows man-in-the-middle attackers to execute arbitrary code. Rated medium severity (CVSS 6.8), this vulnerability is remotely exploitable. Public exploit code available and EPSS exploitation probability 39.9%.

RCE Pip Pypa
NVD GitHub
CVSS 2.0
6.8
EPSS
39.9%
Threat
4.1
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

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 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 6.1
MEDIUM POC PATCH This Month

Setuptools prior to 83.0.0 fails to normalize Unicode filenames before matching them against MANIFEST.in exclusion patterns on macOS APFS and HFS+ filesystems, allowing files with NFD-normalized on-disk names to silently bypass NFC-encoded exclude, global-exclude, recursive-exclude, and prune directives and be packed into Python source distributions. Python package maintainers developing on macOS face a supply chain risk: sensitive files such as credentials, private keys, or environment configs that are correctly listed in MANIFEST.in for exclusion may still appear in tarballs published to PyPI or private registries. No public exploit has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog.

Authentication Bypass Python Apple +2
NVD GitHub VulDB
EPSS 0% CVSS 3.3
LOW PATCH Monitor

When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the. Rated low severity (CVSS 3.3), this vulnerability is low attack complexity. This Command Injection vulnerability could allow attackers to inject arbitrary commands into system command execution.

Command Injection Pip Pypa
NVD GitHub
EPSS 2% CVSS 5.7
MEDIUM PATCH This Month

A flaw was found in python-pip in the way it handled Unicode separators in git references. Rated medium severity (CVSS 5.7), this vulnerability is remotely exploitable, low attack complexity.

Python Information Disclosure Oracle +5
NVD VulDB
EPSS 2% CVSS 7.8
HIGH This Week

An issue was discovered in pip (all versions) because it installs the version with the highest version number, even if the user had intended to obtain a private package from a private index. Rated high severity (CVSS 7.8), this vulnerability is no authentication required, low attack complexity. No vendor patch available.

Information Disclosure Pip Pypa
NVD VulDB
EPSS 0% CVSS 2.1
LOW PATCH Monitor

pip 1.3 through 1.5.6 allows local users to cause a denial of service (prevention of package installation) by creating a /tmp/pip-build-* file for another user. Rated low severity (CVSS 2.1), this vulnerability is low attack complexity.

Denial Of Service Oracle Solaris +2
NVD GitHub
EPSS 0% CVSS 2.1
LOW PATCH Monitor

pip before 1.3 allows local users to overwrite arbitrary files via a symlink attack on a file in the /tmp/pip-build temporary directory. Rated low severity (CVSS 2.1), this vulnerability is low attack complexity.

Information Disclosure Fedora Pip +2
NVD GitHub
EPSS 40% 4.1 CVSS 6.8
MEDIUM POC PATCH THREAT This Month

pip before 1.3 uses HTTP to retrieve packages from the PyPI repository, and does not perform integrity checks on package contents, which allows man-in-the-middle attackers to execute arbitrary code. Rated medium severity (CVSS 6.8), this vulnerability is remotely exploitable. Public exploit code available and EPSS exploitation probability 39.9%.

RCE Pip Pypa
NVD GitHub

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