Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. nokogiri
  4. ›
  5. CVE-2019-5477

CVE-2019-5477: Command Injection

August 16, 2019 (updated September 26, 2019)

A command injection vulnerability in Nokogiri 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.

References

  • github.com/sparklemotion/nokogiri/issues/1915
  • nvd.nist.gov/vuln/detail/CVE-2019-5477

Code Behaviors & Features

Detect and mitigate CVE-2019-5477 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.10.3

Fixed versions

  • 1.10.4

Solution

Upgrade to version 1.10.4 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

gem/nokogiri/CVE-2019-5477.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.