UBUNTU-CVE-2022-21668

Source
https://ubuntu.com/security/CVE-2022-21668
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21668.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-21668
Related
Published
2022-01-10T21:15:00Z
Modified
2025-01-13T10:23:25Z
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

Ubuntu:20.04:LTS / pipenv

Package

Name
pipenv
Purl
pkg:deb/ubuntu/pipenv@11.9.0-1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

11.*

11.9.0-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / pipenv

Package

Name
pipenv
Purl
pkg:deb/ubuntu/pipenv@11.9.0-1.1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

11.*

11.9.0-1.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / pipenv

Package

Name
pipenv
Purl
pkg:deb/ubuntu/pipenv@2023.12.1+ds-1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2023.*

2023.12.1+ds-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / pipenv

Package

Name
pipenv
Purl
pkg:deb/ubuntu/pipenv@2023.12.1+ds-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2023.*

2023.7.23+ds-1
2023.10.3+ds-1
2023.10.24+ds-1
2023.11.15+ds-1
2023.12.1+ds-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}