GLSA-202006-05 : Nokogiri: Command injection

critical Nessus Plugin ID 137442

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-202006-05 (Nokogiri: Command injection)

A command injection vulnerability in Nokogiri allows commands to be executed in a subprocess by Ruby’s Kernel.open method. Processes are vulnerable only if the undocumented method Nokogiri::CSS::Tokenizer#load_file is being passed untrusted user input.
Impact :

A remote attacker could possibly execute arbitrary code with the privileges of the process.
Workaround :

Avoid calling the undocumented method Nokogiri::CSS::Tokenizer#load_file with untrusted user input.

Solution

All Nokogiri users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-ruby/nokogiri-1.10.4'

See Also

https://github.com/sparklemotion/nokogiri/issues/1915

https://security.gentoo.org/glsa/202006-05

Plugin Details

Severity: Critical

ID: 137442

File Name: gentoo_GLSA-202006-05.nasl

Version: 1.3

Type: local

Published: 6/17/2020

Updated: 3/7/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2019-5477

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/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:gentoo:linux:nokogiri, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 6/13/2020

Vulnerability Publication Date: 8/16/2019

Reference Information

CVE: CVE-2019-5477

GLSA: 202006-05