CVE-2022-21668

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-21668
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21668.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21668
Aliases
Related
Published
2022-01-10T21:15:07Z
Modified
2025-01-15T02:14:20.480545Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/pypa/pipenv

Affected ranges

Type
GIT
Repo
https://github.com/pypa/pipenv
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

0.*

0.1.8

v0.*

v0.1.0
v0.1.1
v0.1.10
v0.1.11
v0.1.12
v0.1.13
v0.1.14
v0.1.4
v0.1.6
v0.1.7
v0.1.9
v0.2.2
v0.2.6
v0.2.7
v0.2.8
v0.3.0

v10.*

v10.0.0
v10.0.1
v10.1.0
v10.1.1
v10.1.2

v11.*

v11.0.0
v11.0.1
v11.0.2
v11.0.3
v11.0.4
v11.0.5
v11.0.6
v11.0.7
v11.0.8
v11.0.9
v11.1.0
v11.1.1
v11.1.10
v11.1.11
v11.1.2
v11.1.3
v11.1.4
v11.1.5
v11.1.6
v11.1.7
v11.1.8
v11.1.9
v11.10.0
v11.10.1
v11.10.1.dev1
v11.10.1.dev2
v11.10.1.dev3
v11.10.1.dev4
v11.10.1.dev5
v11.10.2
v11.10.3
v11.10.4
v11.2.0
v11.2.1
v11.2.2
v11.3.0
v11.3.1
v11.3.2
v11.3.3
v11.4.0
v11.5.0
v11.5.1
v11.5.2
v11.5.3
v11.6.0
v11.6.1
v11.6.2
v11.6.3
v11.6.4
v11.6.5
v11.6.7
v11.6.8
v11.6.9
v11.7.0
v11.7.1
v11.7.2
v11.7.3
v11.7.4
v11.8.0
v11.8.2
v11.8.3
v11.9.0

v2.*

v2.8.7

v2018.*

v2018.05.18
v2018.10.13
v2018.10.9
v2018.11.14
v2018.11.26
v2018.6.25
v2018.7.1

v2020.*

v2020.11.15
v2020.11.4
v2020.4.1a2
v2020.4.1b1
v2020.4.1b2
v2020.5.28
v2020.6.2
v2020.8.13

v2021.*

v2021.11.15
v2021.11.23
v2021.11.5
v2021.11.5.post0
v2021.11.9
v2021.5.29

v3.*

v3.0.1
v3.1.1
v3.1.2
v3.1.3
v3.1.4
v3.1.5
v3.1.6
v3.1.7
v3.1.8
v3.2.0
v3.2.1
v3.2.10
v3.2.11
v3.2.14
v3.2.2
v3.2.3
v3.2.4
v3.2.5
v3.2.6
v3.2.7
v3.2.8
v3.3.0
v3.3.1
v3.3.2
v3.3.3
v3.3.4
v3.3.5
v3.3.6
v3.4.0
v3.4.1
v3.4.2
v3.5.0
v3.5.1
v3.5.3
v3.5.4
v3.5.5
v3.5.6
v3.6.0
v3.6.2

v4.*

v4.0.0
v4.0.1
v4.1.0
v4.1.1
v4.1.2
v4.1.3
v4.1.4

v5.*

v5.1.0
v5.1.1
v5.1.2
v5.2.0
v5.3.1
v5.3.3
v5.4.0
v5.4.1
v5.4.2

v6.*

v6.0.0
v6.0.1
v6.0.2
v6.0.3
v6.1.0
v6.1.3
v6.1.4
v6.1.5
v6.1.6
v6.2.0
v6.2.1
v6.2.2
v6.2.3
v6.2.4
v6.2.5
v6.2.6
v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