Amazon Linux AMI : rubygem-nokogiri (ALAS-2022-1648)

high Nessus Plugin ID 168617

Synopsis

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

Description

It is, therefore, affected by a vulnerability as referenced in the ALAS-2022-1648 advisory.

- Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type- check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch for this issue. As a workaround, ensure the untrusted input is a `String` by calling `#to_s` or equivalent. (CVE-2022-29181)

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.

See Also

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

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

Plugin Details

Severity: High

ID: 168617

File Name: ala_ALAS-2022-1648.nasl

Version: 1.3

Type: local

Agent: unix

Published: 12/10/2022

Updated: 9/15/2023

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

Risk Information

VPR

Risk Factor: Medium

Score: 5.0

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5

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

CVSS Score Source: CVE-2022-29181

CVSS v3

Risk Factor: High

Base Score: 8.2

Temporal Score: 7.4

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

Temporal Vector: CVSS:3.0/E:P/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:rubygem21-nokogiri-doc, p-cpe:/a:amazon:linux:rubygem22-nokogiri-doc, p-cpe:/a:amazon:linux:rubygem22-nokogiri, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:rubygem20-nokogiri-doc, p-cpe:/a:amazon:linux:rubygem20-nokogiri

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/1/2022

Vulnerability Publication Date: 5/20/2022

Reference Information

CVE: CVE-2022-29181