Amazon Linux AMI : python36 (ALAS-2020-1428)

medium Nessus Plugin ID 140087

Synopsis

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

Description

The version of python36 installed on the remote host is prior to 3.6.11-1.18. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS-2020-1428 advisory.

In Lib/tarfile.py in Python through 3.8.3, an attacker is able to craft a TAR archive leading to an infinite loop when opened by tarfile.open, because _proc_pax lacks header validation. (CVE-2019-20907)

An issue was discovered in urllib2 in Python 2.x through 2.7.17 and urllib in Python 3.x through 3.8.0.
CRLF injection is possible if the attacker controls a url parameter, as demonstrated by the first argument to urllib.request.urlopen with \r\n (specifically in the host component of a URL) followed by an HTTP header. This is similar to theCVE-2019-9740query string issue and theCVE-2019-9947path string issue. (This is not exploitable when glibc hasCVE-2016-10739fixed.) A CRLF injection flaw was discovered in python in the way URLs are handled when doing an HTTP/HTTPS connection (e.g. through urlopen() or HTTPConnection).
An attacker who can control the url parameter passed to urlopen method in the urllib/urllib2 modules can inject CRLF sequences and HTTP headers by abusing the host part of the URL. (CVE-2019-18348)

Tenable has extracted the preceding description block directly from the tested product security advisory.

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

Solution

Run 'yum update python36' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2020-1428.html

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

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

Plugin Details

Severity: Medium

ID: 140087

File Name: ala_ALAS-2020-1428.nasl

Version: 1.6

Type: local

Agent: unix

Published: 8/31/2020

Updated: 12/11/2024

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

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

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

CVSS Score Source: CVE-2019-18348

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:python36-debuginfo, p-cpe:/a:amazon:linux:python36-debug, p-cpe:/a:amazon:linux:python36-devel, p-cpe:/a:amazon:linux:python36-tools, p-cpe:/a:amazon:linux:python36-libs, p-cpe:/a:amazon:linux:python36-test, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:python36

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

Exploit Ease: No known exploits are available

Patch Publication Date: 8/27/2020

Vulnerability Publication Date: 1/21/2019

Reference Information

CVE: CVE-2019-18348, CVE-2019-20907

BID: 106672, 107466, 107555

ALAS: 2020-1428

IAVA: 2020-A-0340-S