CVE-2022-21668
Pipenv Remote Code Execution Vulnerability
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.
INFO
Published Date :
Jan. 10, 2022, 9:15 p.m.
Last Modified :
Feb. 7, 2024, 7:25 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
6.0
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2022-21668 has a 10 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-21668
.
URL | Resource |
---|---|
https://github.com/pypa/pipenv/commit/439782a8ae36c4762c88e43d5f0d8e563371b46f | Patch Third Party Advisory |
https://github.com/pypa/pipenv/releases/tag/v2022.1.8 | Release Notes Third Party Advisory |
https://github.com/pypa/pipenv/security/advisories/GHSA-qc9x-gjcv-465w | Exploit Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ | Mailing List |
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ | Mailing List |
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ | Mailing List |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
All CVE - PoC in GitHub
poc proofofconcept tester allcve cvegithub cvenew cvepoc cveupdate
None
None
None
None
None
None
Python
None
None
test 反向辣鸡数据投放 CVE-2022-23305 工具 利用 教程 Exploit POC
cve-2020-
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-21668
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-21668
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Feb. 07, 2024
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ No Types Assigned https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ Mailing List Changed Reference Type https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ No Types Assigned https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ Mailing List Changed Reference Type https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ No Types Assigned https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ Mailing List Removed CWE NIST CWE-77 Added CWE NIST CWE-190 Added CWE NIST CWE-1284 -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ [No types assigned] Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ -
Modified Analysis by [email protected]
Apr. 25, 2022
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Mar. 26, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/ [No Types Assigned] -
CVE Modified by [email protected]
Mar. 11, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/ [No Types Assigned] Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/ [No Types Assigned] -
Initial Analysis by [email protected]
Jan. 19, 2022
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:C/I:C/A:C) Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H Changed Reference Type https://github.com/pypa/pipenv/commit/439782a8ae36c4762c88e43d5f0d8e563371b46f No Types Assigned https://github.com/pypa/pipenv/commit/439782a8ae36c4762c88e43d5f0d8e563371b46f Patch, Third Party Advisory Changed Reference Type https://github.com/pypa/pipenv/releases/tag/v2022.1.8 No Types Assigned https://github.com/pypa/pipenv/releases/tag/v2022.1.8 Release Notes, Third Party Advisory Changed Reference Type https://github.com/pypa/pipenv/security/advisories/GHSA-qc9x-gjcv-465w No Types Assigned https://github.com/pypa/pipenv/security/advisories/GHSA-qc9x-gjcv-465w Exploit, Third Party Advisory Added CWE NIST CWE-77 Added CPE Configuration OR *cpe:2.3:a:pypa:pipenv:*:*:*:*:*:*:*:* versions from (including) 2018.10.9 up to (excluding) 2022.1.8
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-21668
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-21668
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.27 }} 0.03%
score
0.68308
percentile