Amazon Linux AMI : rubygem-nokogiri, rubygem18-nokogiri (ALAS-2022-1595)

high Nessus Plugin ID 162003

Synopsis

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

Description

The version of rubygem18-nokogiri installed on the remote host is prior to 1.5.11-1.16. It is, therefore, affected by a vulnerability as referenced in the ALAS-2022-1595 advisory.

Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `>= 1.13.4`. There are no known workarounds for this issue. (CVE-2022-24836)

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 rubygem-nokogiri' to update your system.
Run 'yum update rubygem18-nokogiri' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2022-1595.html

https://alas.aws.amazon.com/cve/html/CVE-2022-24836.html

Plugin Details

Severity: High

ID: 162003

File Name: ala_ALAS-2022-1595.nasl

Version: 1.3

Type: local

Agent: unix

Published: 6/10/2022

Updated: 12/11/2024

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

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS Score Source: CVE-2022-24836

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:rubygem-nokogiri-debuginfo, p-cpe:/a:amazon:linux:rubygem21-nokogiri, p-cpe:/a:amazon:linux:rubygem18-nokogiri-doc, p-cpe:/a:amazon:linux:rubygem21-nokogiri-doc, p-cpe:/a:amazon:linux:rubygem18-nokogiri-debuginfo, p-cpe:/a:amazon:linux:rubygem22-nokogiri-doc, p-cpe:/a:amazon:linux:rubygem20-nokogiri-doc, p-cpe:/a:amazon:linux:rubygem22-nokogiri, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:rubygem18-nokogiri, p-cpe:/a:amazon:linux:rubygem20-nokogiri

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/31/2022

Vulnerability Publication Date: 4/11/2022

Reference Information

CVE: CVE-2022-24836