Amazon Linux 2023 : python3-rpm, rpm, rpm-apidocs (ALAS2023-2024-573)

medium Nessus Plugin ID 192453

Synopsis

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

Description

It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2023-2024-573 advisory.

A race condition vulnerability was found in rpm. A local unprivileged user could use this flaw to bypass the checks that were introduced in response to CVE-2017-7500 and CVE-2017-7501, potentially gaining root privileges. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability. (CVE-2021-35937)

A symbolic link issue was found in rpm. It occurs when rpm sets the desired permissions and credentials after installing a file. A local unprivileged user could use this flaw to exchange the original file with a symbolic link to a security-critical file and escalate their privileges on the system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
(CVE-2021-35938)

It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the parent directory of the file to be created. A local unprivileged user who owns another ancestor directory could potentially use this flaw to gain root privileges. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

This issue requires that the attacker have admin privileges on the target system, and be able to own and modify system files. Considering the tradeoff between the stability of Amazon Linux and the impact of CVE-2021-35939 a fix will not be provided for Amazon Linux 1, Amazon Linux 2 and Amazon Linux 2023 at this time. (CVE-2021-35939)

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 'dnf update rpm --releasever 2023.4.20240319' to update your system.

See Also

https://alas.aws.amazon.com/cve/html/CVE-2021-35939.html

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

https://alas.aws.amazon.com/AL2023/ALAS-2024-573.html

https://alas.aws.amazon.com/cve/html/CVE-2021-35937.html

https://alas.aws.amazon.com/cve/html/CVE-2021-35938.html

Plugin Details

Severity: Medium

ID: 192453

File Name: al2023_ALAS2023-2024-573.nasl

Version: 1.2

Type: local

Agent: unix

Published: 3/21/2024

Updated: 12/11/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.1

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

CVSS Score Source: CVE-2021-35939

CVSS v3

Risk Factor: Medium

Base Score: 6.7

Temporal Score: 6

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:rpm-debuginfo, p-cpe:/a:amazon:linux:rpm-plugin-audit-debuginfo, p-cpe:/a:amazon:linux:rpm-plugin-systemd-inhibit, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:rpm-plugin-ima-debuginfo, p-cpe:/a:amazon:linux:rpm-apidocs, p-cpe:/a:amazon:linux:rpm-sign-debuginfo, p-cpe:/a:amazon:linux:rpm-devel, p-cpe:/a:amazon:linux:rpm-plugin-audit, p-cpe:/a:amazon:linux:rpm-debugsource, p-cpe:/a:amazon:linux:python3-rpm, p-cpe:/a:amazon:linux:rpm-plugin-ima, p-cpe:/a:amazon:linux:rpm-sign, p-cpe:/a:amazon:linux:rpm-plugin-prioreset-debuginfo, p-cpe:/a:amazon:linux:rpm-plugin-fapolicyd, p-cpe:/a:amazon:linux:rpm-plugin-selinux, p-cpe:/a:amazon:linux:rpm-plugin-selinux-debuginfo, p-cpe:/a:amazon:linux:rpm-plugin-systemd-inhibit-debuginfo, p-cpe:/a:amazon:linux:rpm-libs, p-cpe:/a:amazon:linux:rpm-libs-debuginfo, p-cpe:/a:amazon:linux:rpm-plugin-prioreset, p-cpe:/a:amazon:linux:rpm-plugin-fapolicyd-debuginfo, p-cpe:/a:amazon:linux:rpm-plugin-syslog-debuginfo, p-cpe:/a:amazon:linux:rpm-devel-debuginfo, p-cpe:/a:amazon:linux:rpm-sign-libs, p-cpe:/a:amazon:linux:python3-rpm-debuginfo, p-cpe:/a:amazon:linux:rpm-build-libs, p-cpe:/a:amazon:linux:rpm-sign-libs-debuginfo, p-cpe:/a:amazon:linux:rpm-plugin-syslog, p-cpe:/a:amazon:linux:rpm-build, p-cpe:/a:amazon:linux:rpm-cron, p-cpe:/a:amazon:linux:rpm-build-debuginfo, p-cpe:/a:amazon:linux:rpm-build-libs-debuginfo, p-cpe:/a:amazon:linux:rpm

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: 3/13/2024

Vulnerability Publication Date: 8/25/2022

Reference Information

CVE: CVE-2021-35937, CVE-2021-35938, CVE-2021-35939