Amazon Linux AMI : ruby20 (ALAS-2020-1416)

high Nessus Plugin ID 139550
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

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

Description

An issue was discovered in Ruby before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3. It does not taint strings that result from unpacking tainted strings with some formats.
(CVE-2018-16396)

The JSON gem through 2.2.0 for Ruby, as used in Ruby 2.4 through 2.4.9, 2.5 through 2.5.7, and 2.6 through 2.6.5, has an Unsafe Object Creation Vulnerability. This is quite similar to CVE-2013-0269 , but does not rely on poor garbage-collection behavior within Ruby.
Specifically, use of JSON parsing methods can lead to creation of a malicious object within the interpreter, with adverse effects that are application-dependent. (CVE-2020-10663)

Solution

Run 'yum update ruby20' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2020-1416.html

Plugin Details

Severity: High

ID: 139550

File Name: ala_ALAS-2020-1416.nasl

Version: 1.1

Type: local

Agent: unix

Published: 8/13/2020

Updated: 8/13/2020

Dependencies: ssh_get_info.nasl

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.8

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

CVSS v3

Risk Factor: High

Base Score: 8.1

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

Vulnerability Information

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

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

Patch Publication Date: 8/12/2020

Vulnerability Publication Date: 11/16/2018

Reference Information

CVE: CVE-2018-16396, CVE-2020-10663

ALAS: 2020-1416