Amazon Linux AMI : ruby20 (ALAS-2021-1505)

high Nessus Plugin ID 149862

Synopsis

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

Description

The version of ruby20 installed on the remote host is prior to 2.0.0.648-2.40. It is, therefore, affected by a vulnerability as referenced in the ALAS-2021-1505 advisory.

RDoc before version 6.3.1 used to call Kernel#open to open a local file. If a Ruby project has a file whose name starts with | and ends with tags, the command following the pipe character is executed. A malicious Ruby project could exploit it to run an arbitrary command execution against a user who attempts to run the rdoc command. (CVE-2021-31799)

Tenable has extracted the preceding description block directly from the tested product security advisory.

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

See Also

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

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

Plugin Details

Severity: High

ID: 149862

File Name: ala_ALAS-2021-1505.nasl

Version: 1.5

Type: local

Agent: unix

Published: 5/24/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: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 4.4

Temporal Score: 3.3

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

CVSS Score Source: CVE-2021-31799

CVSS v3

Risk Factor: High

Base Score: 7

Temporal Score: 6.1

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:ruby20-libs, p-cpe:/a:amazon:linux:rubygem20-bigdecimal, p-cpe:/a:amazon:linux:rubygem20-psych, p-cpe:/a:amazon:linux:rubygems20, p-cpe:/a:amazon:linux:rubygem20-io-console, p-cpe:/a:amazon:linux:ruby20, p-cpe:/a:amazon:linux:ruby20-debuginfo, p-cpe:/a:amazon:linux:ruby20-irb, p-cpe:/a:amazon:linux:ruby20-doc, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:ruby20-devel, p-cpe:/a:amazon:linux:rubygems20-devel

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

Exploit Ease: No known exploits are available

Patch Publication Date: 5/20/2021

Vulnerability Publication Date: 5/20/2021

Reference Information

CVE: CVE-2021-31799

ALAS: 2021-1505