Amazon Linux AMI : cloud-init (ALAS-2021-1486)

medium Nessus Plugin ID 147917

Synopsis

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

Description

The version of cloud-init installed on the remote host is prior to 0.7.6-43.23. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS-2021-1486 advisory.

A flaw was found in cloud-init, where it uses the random.choice function when creating sensitive random strings used for generating a random password in new instances. Depending on the instance configuration, a remote or local attacker may abuse this vulnerability to guess the password of the victim user.
(CVE-2020-8631)

A flaw was found in cloud-init, where it uses short passwords when generating a random password in new instances. Depending on the instance configuration, a remote or local attacker may abuse this vulnerability to guess the password of the victim user. (CVE-2020-8632)

A vulnerability was discovered in cloud-init which can improperly disclose randomly generated passwords as part of the chpasswd module. The fix prevents the generated password from being written to a world- readable log file on the local disk. (CVE-2021-3429)

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

See Also

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

https://access.redhat.com/security/cve/CVE-2020-8631

https://access.redhat.com/security/cve/CVE-2020-8632

https://access.redhat.com/security/cve/CVE-2021-3429

Plugin Details

Severity: Medium

ID: 147917

File Name: ala_ALAS-2021-1486.nasl

Version: 1.4

Type: local

Agent: unix

Published: 3/20/2021

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: Low

Base Score: 2.1

Temporal Score: 1.6

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

CVSS Score Source: CVE-2020-8632

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

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

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

CVSS Score Source: CVE-2021-3429

Vulnerability Information

CPE: cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:cloud-init

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

Exploit Ease: No known exploits are available

Patch Publication Date: 3/18/2021

Vulnerability Publication Date: 2/5/2020

Reference Information

CVE: CVE-2020-8631, CVE-2020-8632, CVE-2021-3429

ALAS: 2021-1486