CVE-2019-5477
published 2019-08-16CVE-2019-5477: 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…
PriorityP357critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
5.90%
92.4th percentile
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.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | rexical | < rexical 1.0.7-1 (bookworm) | rexical 1.0.7-1 (bookworm) |
| debian | ruby-nokogiri | < rexical 1.0.7-1 (bookworm) | rexical 1.0.7-1 (bookworm) |
| nokogiri | nokogiri | <= 1.10.3 | — |
| nokogiri | nokogiri | >= 0 < 1.10.4 | 1.10.4 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Nokogiri Command Injection Vulnerability
osv·2019-08-19
CVE-2019-5477 [CRITICAL] Nokogiri Command Injection Vulnerability
Nokogiri Command Injection Vulnerability
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.
GHSA
Nokogiri Command Injection Vulnerability
ghsa·2019-08-19
CVE-2019-5477 [CRITICAL] CWE-78 Nokogiri Command Injection Vulnerability
Nokogiri Command Injection Vulnerability
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.
OSV
CVE-2019-5477: A command injection vulnerability in Nokogiri v1
osv·2019-08-16·CVSS 9.8
CVE-2019-5477 [CRITICAL] CVE-2019-5477: A command injection vulnerability in Nokogiri v1
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.
Ubuntu
Nokogiri vulnerability
vendor_ubuntu·2019-11-05
CVE-2019-5477 Nokogiri vulnerability
Title: Nokogiri vulnerability
Summary: Nokogiri could be made to execute programs if it received
specially crafted input.
It was discovered that Nokogiri incorrectly handled inputs. A remote attacker
could possibly use this issue to execute arbitrary OS commands.
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2019-5477: rexical - A command injection vulnerability in Nokogiri v1.10.3 and earlier allows command...
vendor_debian·2019·CVSS 9.8
CVE-2019-5477 [CRITICAL] CVE-2019-5477: rexical - A command injection vulnerability in Nokogiri v1.10.3 and earlier allows command...
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.
Scope: local
bookworm: resolved (fixed in 1.0.7-1)
bullseye: resolved (fixed in 1.0.7-1)
forky: resolved (fixed in 1.0.7-1)
sid: resolved (fixed in 1.0.7-1)
trixie: resolved (fixed in 1.0.7-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/sparklemotion/nokogiri/issues/1915https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdochttps://hackerone.com/reports/650835https://lists.debian.org/debian-lts-announce/2019/09/msg00027.htmlhttps://lists.debian.org/debian-lts-announce/2022/10/msg00018.htmlhttps://lists.debian.org/debian-lts-announce/2022/10/msg00019.htmlhttps://security.gentoo.org/glsa/202006-05https://usn.ubuntu.com/4175-1/https://github.com/sparklemotion/nokogiri/issues/1915https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdochttps://hackerone.com/reports/650835https://lists.debian.org/debian-lts-announce/2019/09/msg00027.htmlhttps://lists.debian.org/debian-lts-announce/2022/10/msg00018.htmlhttps://lists.debian.org/debian-lts-announce/2022/10/msg00019.htmlhttps://security.gentoo.org/glsa/202006-05https://usn.ubuntu.com/4175-1/
2019-08-16
Published