CVE-2022-21668
Summary
| CVE | CVE-2022-21668 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-01-10 21:15:00 UTC |
| Updated | 2023-11-07 03:43:00 UTC |
| Description | pipenv 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. |
Risk And Classification
Problem Types: CWE-20 | CWE-78 | CWE-77 | CWE-427 | CWE-791
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Fedoraproject | Fedora | 34 | All | All | All |
| Operating System | Fedoraproject | Fedora | 35 | All | All | All |
| Operating System | Fedoraproject | Fedora | 36 | All | All | All |
| Application | Pypa | Pipenv | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Pipenv's requirements.txt parsing allows malicious index url in comments · Advisory · pypa/pipenv · GitHub | CONFIRM | github.com | |
| [SECURITY] Fedora 35 Update: pipenv-2021.5.29-7.fc35 - package-announce - Fedora Mailing-Lists | FEDORA | lists.fedoraproject.org | |
| [SECURITY] Fedora 36 Update: pipenv-2021.5.29-7.fc36 - package-announce - Fedora Mailing-Lists | lists.fedoraproject.org | ||
| Release Release v2022.1.8 · pypa/pipenv · GitHub | MISC | github.com | |
| [SECURITY] Fedora 35 Update: pipenv-2021.5.29-7.fc35 - package-announce - Fedora Mailing-Lists | lists.fedoraproject.org | ||
| Merge pull request from GHSA-qc9x-gjcv-465w · pypa/pipenv@439782a · GitHub | MISC | github.com | |
| [SECURITY] Fedora 34 Update: pipenv-2020.11.15-3.fc34 - package-announce - Fedora Mailing-Lists | lists.fedoraproject.org | ||
| [SECURITY] Fedora 36 Update: pipenv-2021.5.29-7.fc36 - package-announce - Fedora Mailing-Lists | FEDORA | lists.fedoraproject.org | |
| [SECURITY] Fedora 34 Update: pipenv-2020.11.15-3.fc34 - package-announce - Fedora Mailing-Lists | FEDORA | lists.fedoraproject.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.