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.

- cloud-init through 19.4 relies on Mersenne Twister for a random password, which makes it easier for attackers to predict passwords, because rand_str in cloudinit/util.py calls the random.choice function.
(CVE-2020-8631)

- In cloud-init through 19.4, rand_user_password in cloudinit/config/cc_set_passwords.py has a small default pwlen value, which makes it easier for attackers to guess passwords. (CVE-2020-8632)

Note that Nessus has not tested for this issue 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.3

Type: local

Agent: unix

Published: 3/20/2021

Updated: 1/9/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