National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2019-5477 Detail

Current Description

A command injection vulnerability in Nokogiri v1.10.3 and earlier allows commands to be executed in a subprocess via Ruby's `Kernel.open` method. Processes are vulnerable only if the undocumented method `Nokogiri::CSS::Tokenizer#load_file` is being called with unsafe user input as the filename. This vulnerability appears in code generated by the Rexical gem versions v1.0.6 and earlier. Rexical is used by Nokogiri to generate lexical scanner code for parsing CSS queries. The underlying vulnerability was addressed in Rexical v1.0.7 and Nokogiri upgraded to this version of Rexical in Nokogiri v1.10.4.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 9.8 CRITICAL
Vector:  CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
https://github.com/sparklemotion/nokogiri/issues/1915 Patch Third Party Advisory
https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc Release Notes
https://hackerone.com/reports/650835 Permissions Required
https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html
https://usn.ubuntu.com/4175-1/

Weakness Enumeration

CWE-ID CWE Name Source
CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection') NIST  
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') HackerOne  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
1.10.3


Change History

5 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2019-5477
NVD Published Date:
08/16/2019
NVD Last Modified:
09/26/2019