SCA: security update for pipenv (GHSA-qc9x-gjcv-465w)

high Tenable Cloud Security Plugin ID 418049

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2022-21668)

See Also

https://github.com/advisories/GHSA-qc9x-gjcv-465w

Plugin Details

Severity: High

ID: 418049

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: High

Score: 7.7

Percentile: 99.19

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-21668

CVSS v3

Risk Factor: High

Base Score: 8.6

Temporal Score: 7.7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.8

Threat Score: 7.3

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/12/2022

Vulnerability Publication Date: 1/10/2022

Reference Information

CVE: CVE-2022-21668