
CVE catalog
CVE-2022-21668
pipenv affected and fixed versions
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.
- Severity
- High · CVSS 8
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.81% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debiantrixie | pipenv | 2024.0.1+ds-3 | Not affected | [CVE-2022-21668] |
| Debiansid | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debiansid | pipenv | 2026.8.0+ds-1 | Not affected | [CVE-2022-21668] |
| Debianforky | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debianforky | pipenv | 2026.8.0+ds-1 | Not affected | [CVE-2022-21668] |
| Debianbookworm | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debianbookworm | pipenv | 2022.12.19+ds-1 | Not affected | [CVE-2022-21668] |
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debianbookworm | pipenv | 2022.12.19+ds-1 | Not affected | [CVE-2022-21668] |
| Debianforky | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debianforky | pipenv | 2026.8.0+ds-1 | Not affected | [CVE-2022-21668] |
| Debiansid | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debiansid | pipenv | 2026.8.0+ds-1 | Not affected | [CVE-2022-21668] |
| Debiantrixie | pipenv | Not reported | Not affectedDistribution reports not affected | [CVE-2022-21668] |
| Debiantrixie | pipenv | 2024.0.1+ds-3 | Not affected | [CVE-2022-21668] |
Original provider fields
{
"package_releases": [
{
"name": "pipenv",
"status": "not affected",
"release": "sid",
"version": "2026.8.0+ds-1"
},
{
"name": "pipenv",
"status": "not affected",
"release": "forky",
"version": "2026.8.0+ds-1"
},
{
"name": "pipenv",
"status": "not affected",
"release": "trixie",
"version": "2024.0.1+ds-3"
},
{
"name": "pipenv",
"status": "not affected",
"release": "bookworm",
"version": "2022.12.19+ds-1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "pipenv",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "unimportant",
"fixed_version": "0"
},
{
"bug": null,
"name": "pipenv",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "unimportant",
"fixed_version": "0"
},
{
"bug": null,
"name": "pipenv",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "unimportant",
"fixed_version": "0"
},
{
"bug": null,
"name": "pipenv",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "unimportant",
"fixed_version": "0"
}
],
"distribution_packages": []
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [pipenv]Unknown
Details (2)
2022.12.19+ds-1· all · bookwormNot affected
dsa · pipenv · debian · bookworm
2022.12.19+ds-1· all · bookwormNot affected
dsa · pipenv · debian · bookworm
Observed: