Pypa vulnerabilities, page 2
36 vulnerabilities
Known vulnerabilities in Pypa products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 6 products.
RoutineCVE-2026-102925pypa · virtualenv +8 morevirtualenv bash and fish activation scripts execute commands embedded in pathsvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.13, the generated activate (bash and zsh) and activate.fish scripts place values already escaped by shlex.quote inside an additional quoted context. In the bash and zsh script, a crafted virtual environment path reaches __VIRTUAL_ENV__ when a relocated environment's recorded directory is absent; in the fish script, crafted Tcl or Tk library paths reach __TCL_LIBRARY__ or __TK_LIBRARY__. The surplus quotes can terminate the data-only quoted run and leave shell metacharacters parsed as commands when a user sources the activation script, allowing code execution with that user's privileges. This issue is fixed in version 21.7.13.CVSS7.8HighEPSS0.16%RoutineCVE-2026-13346python packaging authority · pip +69 morepip absolute path traversal during download from malicious package indexespip would incorrectly handle doubly-encoded package URLs from indexes allowing for files to be installed to arbitrary locations on disk even when installing wheels.
This vulnerability requires downloading or installing a package from a malicious package index to succeed, malicious packages alone are not able to exploit this vulnerability. Note that this vulnerability only materially impacts users running `pip download` with the `--only-binary` option as installing source distributions from an untrusted index is already an unsafe operation that executes code during install time.CVSS6.5MediumEPSS0.29%RoutineCVE-2026-59890pypa · setuptools +208 moresetuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.CVSS6.1MediumEPSS0.53%RoutineCVE-2026-8643python packaging authority · pip +33 morepip can extract console_scripts and gui_scripts outside installation directorypip would treat console_scripts and gui_scripts as paths instead of file names without sanitizing the resolved absolute path to the installation directory, leading to entry points being installed outside the installation directory.CVSS8.0HighEPSS0.32%PrioritiseCVE-2026-24049pypa · wheel +165 morewheel Allows Arbitrary File Permission Modification via Path Traversalwheel is a command line tool for manipulating Python wheel files, as defined in PEP 427. In versions 0.40.0 through 0.46.1, the unpack function is vulnerable to file permission modification through mishandling of file permissions after extraction. The logic blindly trusts the filename from the archive header for the chmod operation, even though the extraction process itself might have sanitized the path. Attackers can craft a malicious wheel file that, when unpacked, changes the permissions of critical system files (e.g., /etc/passwd, SSH keys, config files), allowing for Privilege Escalation or arbitrary code execution by modifying now-writable scripts. This issue has been fixed in version 0.46.2.CVSS7.1HighEPSS0.35%RoutineCVE-2026-22702pypa · virtualenv +12 morevirtualenv Has TOCTOU Vulnerabilities in Directory Creationvirtualenv is a tool for creating isolated virtual python environments. Prior to version 20.36.1, TOCTOU (Time-of-Check-Time-of-Use) vulnerabilities in virtualenv allow local attackers to perform symlink-based attacks on directory creation operations. An attacker with local access can exploit a race condition between directory existence checks and creation to redirect virtualenv's app_data and lock file operations to attacker-controlled locations. This issue has been patched in version 20.36.1.CVSS4.5MediumEPSS0.10%PrioritiseCVE-2025-47273pypa · setuptools +492 moresetuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Writesetuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. A path traversal vulnerability in `PackageIndex` is present in setuptools prior to version 78.1.1. An attacker would be allowed to write files to arbitrary locations on the filesystem with the permissions of the process running the Python code, which could escalate to remote code execution depending on the context. Version 78.1.1 fixes the issue.CVSS8.8HighEPSS1.62%RoutineCVE-2024-6345pypa · pypa/setuptools +362 moreRemote Code Execution in pypa/setuptoolsA vulnerability in the package_index module of pypa/setuptools versions up to 69.1.1 allows for remote code execution via its download functions. These functions, which are used to download packages from URLs provided by users or retrieved from package index servers, are susceptible to code injection. If these functions are exposed to user-controlled inputs, such as package URLs, they can execute arbitrary commands on the system. The issue is fixed in version 70.0.CVSS8.8HighEPSS1.98%RoutineCVE-2023-5752pypa · pip +19 moreMercurial configuration injectable in repo revision when installing via pipWhen 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 "hg clone"
call (ie "--config"). Controlling the Mercurial configuration can modify
how and which repository is installed. This vulnerability does not
affect users who aren't installing from Mercurial.CVSS5.5MediumEPSS0.50%PrioritiseCVE-2022-21668fedoraproject · fedora +3 morePipenv's requirements.txt parsing allows malicious index url in commentspipenv is a Python development workflow tool. Starting with version 2018.10.9 and prior to version 2022.1.8, a flaw in pipenv's parsing of requirements files allows an attacker to insert a specially crafted string inside a comment anywhere within a requirements.txt file, which will cause victims who use pipenv to install the requirements file to download dependencies from a package index server controlled by the attacker. By embedding malicious code in packages served from their malicious index server, the attacker can trigger arbitrary remote code execution (RCE) on the victims' systems. If an attacker is able to hide a malicious `--index-url` option in a requirements file that a victim installs with pipenv, the attacker can embed arbitrary malicious code in packages served from their malicious index server that will be executed on the victim's host during installation (remote code execution/RCE). When pip installs from a source distribution, any code in the setup.py is executed by the install process. This issue is patched in version 2022.1.8. The GitHub Security Advisory contains more information about this vulnerability.CVSS9.3CriticalEPSS3.93%RoutineCVE-2021-3572oracle · agile_product_lifecycle_management +52 moreoracle agile_product_lifecycle_managementA flaw was found in python-pip in the way it handled Unicode separators in git references. A remote attacker could possibly use this issue to install a different revision on a repository. The highest threat from this vulnerability is to data integrity. This is fixed in python-pip version 21.1.CVSS5.7MediumEPSS1.83%PrioritiseCVE-2019-20916debian · debian_linux +217 moredebian debian_linuxThe pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a Content-Disposition header can have ../ in a filename, as demonstrated by overwriting the /root/.ssh/authorized_keys file. This occurs in _download_http_url in _internal/download.py.CVSS7.5HighEPSS3.00%RoutineCVE-2013-5123debian · debian_linux +10 moredebian debian_linuxThe mirroring support (-M, --use-mirrors) in Python Pip before 1.5 uses insecure DNS querying and authenticity checks which allows attackers to perform man-in-the-middle attacks.CVSS5.9MediumEPSS7.99%RoutineCVE-2014-8991oracle · solaris +5 moreoracle solarispip 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.CVSS2.1LowEPSS0.39%RoutineCVE-2013-1888fedoraproject · fedora +2 morefedoraproject fedorapip before 1.3 allows local users to overwrite arbitrary files via a symlink attack on a file in the /tmp/pip-build temporary directory.CVSS2.1LowEPSS0.38%PrioritiseCVE-2013-1629pypa · pip +4 morepypa pippip 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 via a crafted response to a "pip install" operation.CVSS6.8MediumEPSS6.19%