Amazon Linux 2 : python3 (ALAS-2023-2317)

critical Nessus Plugin ID 183926

Synopsis

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

Description

The version of python3 installed on the remote host is prior to 3.7.10-1. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2023-2317 advisory.

2024-08-28: CVE-2022-48564 was added to this advisory.

2023-10-30: CVE-2020-26116 was added to this advisory.

2023-10-30: CVE-2020-27619 was added to this advisory.

A flaw was found in Python. The built-in modules httplib and http.client (included in Python 2 and Python 3, respectively) do not properly validate CRLF sequences in the HTTP request method, potentially allowing manipulation to the request by injecting additional HTTP headers. The highest threat from this vulnerability is to confidentiality and integrity. (CVE-2020-26116)

In Python3's Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.
(CVE-2020-27619)

read_ints in plistlib.py in Python through 3.9.1 is vulnerable to a potential DoS attack via CPU and RAM exhaustion when processing malformed Apple Property List files in binary format. (CVE-2022-48564)

An XML External Entity (XXE) issue was discovered in Python through 3.9.1. The plistlib module no longer accepts entity declarations in XML plist files to avoid XML vulnerabilities. (CVE-2022-48565)

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 python3' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2023-2317.html

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

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

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

https://alas.aws.amazon.com/cve/html/CVE-2022-48564.html

https://alas.aws.amazon.com/cve/html/CVE-2022-48565.html

Plugin Details

Severity: Critical

ID: 183926

File Name: al2_ALAS-2023-2317.nasl

Version: 1.4

Type: local

Agent: unix

Published: 10/26/2023

Updated: 8/30/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2020-27619

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

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

CVSS Score Source: CVE-2022-48565

Vulnerability Information

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

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: 10/25/2023

Vulnerability Publication Date: 8/22/2023

Reference Information

CVE: CVE-2020-26116, CVE-2020-27619, CVE-2022-48564, CVE-2022-48565

IAVA: 2023-A-0442