Amazon Linux AMI : python27, python34, python35, python36 (ALAS-2020-1407)

medium Nessus Plugin ID 139087

Synopsis

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

Description

Python 2.7 through 2.7.17, 3.5 through 3.5.9, 3.6 through 3.6.10, 3.7 through 3.7.6, and 3.8 through 3.8.1 allows an HTTP server to conduct Regular Expression Denial of Service (ReDoS) attacks against a client because of urllib.request.AbstractBasicAuthHandler catastrophic backtracking. (CVE-2020-8492)

- 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 (specifically in the host component of a URL) followed by an HTTP header. This is similar to the CVE-2019-9740 query string issue and the CVE-2019-9947 path string issue.
(This is not exploitable when glibc has CVE-2016-10739 fixed.). This is fixed in: v2.7.18, v2.7.18rc1;
v3.5.10, v3.5.10rc1; v3.6.11, v3.6.11rc1, v3.6.12; v3.7.8, v3.7.8rc1, v3.7.9; v3.8.3, v3.8.3rc1, v3.8.4, v3.8.4rc1, v3.8.5, v3.8.6, v3.8.6rc1. (CVE-2019-18348)

- Python 2.7 through 2.7.17, 3.5 through 3.5.9, 3.6 through 3.6.10, 3.7 through 3.7.6, and 3.8 through 3.8.1 allows an HTTP server to conduct Regular Expression Denial of Service (ReDoS) attacks against a client because of urllib.request.AbstractBasicAuthHandler catastrophic backtracking. (CVE-2020-8492)

Solution

Run 'yum update python27' to update your system.
Run 'yum update python34' to update your system.
Run 'yum update python35' to update your system.
Run 'yum update python36' to update your system.

See Also

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

https://alas.aws.amazon.com/../../faqs.html

https://alas.aws.amazon.com/cve/html/CVE-2019-18348.html

https://alas.aws.amazon.com/cve/html/CVE-2020-8492.html

Plugin Details

Severity: Medium

ID: 139087

File Name: ala_ALAS-2020-1407.nasl

Version: 1.5

Type: local

Agent: unix

Published: 7/30/2020

Updated: 2/27/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

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.5

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:P/RL:O/RC:C

Vulnerability Information

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

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: 7/29/2020

Vulnerability Publication Date: 1/30/2020

Reference Information

CVE: CVE-2019-18348, CVE-2020-8492

ALAS: 2020-1407