Amazon Linux 2 : python-pip (ALAS-2021-1639)

high Nessus Plugin ID 149875

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

It is, therefore, affected by a vulnerability as referenced in the ALAS2-2021-1639 advisory.

- The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a Content-Disposition header can have ../ in a filename, as demonstrated by overwriting the /root/.ssh/authorized_keys file. This occurs in _download_http_url in _internal/download.py.
(CVE-2019-20916)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update python-pip' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2021-1639.html

https://access.redhat.com/security/cve/CVE-2019-20916

Plugin Details

Severity: High

ID: 149875

File Name: al2_ALAS-2021-1639.nasl

Version: 1.3

Type: local

Agent: unix

Published: 5/24/2021

Updated: 12/29/2023

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

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

CVSS Score Source: CVE-2019-20916

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:python2-pip, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:python3-pip, p-cpe:/a:amazon:linux:python-pip-wheel

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/20/2021

Vulnerability Publication Date: 9/3/2020

Reference Information

CVE: CVE-2019-20916

ALAS: 2021-1639