Command Injection Affecting nokogiri package, versions <1.10.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.02% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-NOKOGIRI-459107
  • published13 Aug 2019
  • disclosed20 Jul 2019
  • creditUnknown

Introduced: 20 Jul 2019

CVE-2019-5477  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.10.4 or higher.

Overview

nokogiri is a gem for parsing HTML, XML, SAX, and Reader.

Affected versions of this package are vulnerable to Command Injection via the undocumented method Nokogiri::CSS::Tokenizer#load_file. This allows commands to be executed in a subprocess.

CVSS Scores

version 3.1