9.8
CRITICAL CVSS 3.1
CVE-2019-5477
"Nokogiri Command Injection Vulnerability"
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.

INFO

Published Date :

Aug. 16, 2019, 4:15 p.m.

Last Modified :

Nov. 21, 2024, 4:45 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2019-5477 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Canonical ubuntu_linux
1 Debian debian_linux
1 Nokogiri nokogiri
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 HIGH [email protected]
CVSS 3.1 CRITICAL [email protected]
Solution
A command injection vulnerability exists in Nokogiri. Upgrade to a patched version to resolve this vulnerability.
  • Update the ruby-nokogiri packages.
  • Update the Nokogiri package to version 1.10.4 or later.
Public PoC/Exploit Available at Github

CVE-2019-5477 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2019-5477 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

A personal list of various resources for those who are interested in learning about infosec and hacking and keeping themselves up to date. This is by no means a complete nor fresh list, but I occasionally add entries to lists.

hacking infosec security

Updated: 4 weeks, 2 days ago
160 stars 19 fork 19 watcher
Born at : Oct. 21, 2020, 11:56 a.m. This repo has been linked 4 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2019-5477 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2019-5477 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/sparklemotion/nokogiri/issues/1915
    Added Reference https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc
    Added Reference https://hackerone.com/reports/650835
    Added Reference https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html
    Added Reference https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html
    Added Reference https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html
    Added Reference https://security.gentoo.org/glsa/202006-05
    Added Reference https://usn.ubuntu.com/4175-1/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Oct. 14, 2022

    Action Type Old Value New Value
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html Mailing List, Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html Mailing List, Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 12, 2022

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html [No Types Assigned]
    Added Reference https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html [No Types Assigned]
  • Modified Analysis by [email protected]

    Oct. 16, 2020

    Action Type Old Value New Value
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html No Types Assigned https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html Mailing List, Third Party Advisory
    Changed Reference Type https://security.gentoo.org/glsa/202006-05 No Types Assigned https://security.gentoo.org/glsa/202006-05 Third Party Advisory
    Changed Reference Type https://usn.ubuntu.com/4175-1/ No Types Assigned https://usn.ubuntu.com/4175-1/ Third Party Advisory
    Removed CWE NIST CWE-77
    Added CWE NIST CWE-78
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jun. 13, 2020

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/202006-05 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 13, 2019

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/4175-1/ [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 09, 2019

    Action Type Old Value New Value
    Added CWE HackerOne CWE-78
  • CVE Modified by [email protected]

    Sep. 26, 2019

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html [No Types Assigned]
  • Reanalysis by [email protected]

    Sep. 09, 2019

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed CPE Configuration OR *cpe:2.3:a:nokogiri_project:nokogiri:*:*:*:*:*:*:*:* versions up to (including) 1.10.3 OR *cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:* versions up to (including) 1.10.3
  • Initial Analysis by [email protected]

    Aug. 29, 2019

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/sparklemotion/nokogiri/issues/1915 No Types Assigned https://github.com/sparklemotion/nokogiri/issues/1915 Patch, Third Party Advisory
    Changed Reference Type https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc No Types Assigned https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc Release Notes
    Changed Reference Type https://hackerone.com/reports/650835 No Types Assigned https://hackerone.com/reports/650835 Permissions Required
    Added CWE CWE-77
    Added CPE Configuration OR *cpe:2.3:a:nokogiri_project:nokogiri:*:*:*:*:*:*:*:* versions up to (including) 1.10.3
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 9.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 7.5
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

1.31 }} 0.04%

score

0.78936

percentile