Vulnerability
CVE-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 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.
19 advisories report this vulnerability, across 6 ecosystems.
Advisories
-
ALPINE-CVE-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 vulnerable only if the undocumented method…
- ALPINE-EDGE-CVE-2019-5477
-
DEBIAN-CVE-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 vulnerable only if the undocumented method…
-
DLA-1933-1
ruby-nokogiri - security update
-
DLA-3149-1
ruby-nokogiri - security update
-
DLA-3150-1
rexical - security update
-
GHSA-cr5j-953j-xw5p
Nokogiri Command Injection Vulnerability
-
SUSE-SU-2019:2671-1
Security update for crowbar-core, crowbar-openstack, grafana, novnc, openstack-keystone, openstack-neutron, openstack-neutron-lbaas, openstack-nova, openstack-tempest, python-pysaml2, python-urllib3, rubygem-chef,…
-
SUSE-SU-2019:2867-1
Security update for ardana-ansible, ardana-glance, ardana-horizon, ardana-input-model, ardana-manila, ardana-neutron, ardana-nova, ardana-octavia, ardana-tempest, crowbar-core, crowbar-ha, crowbar-openstack, crowbar-ui,…
-
SUSE-SU-2021:0210-1
Security update for rubygem-nokogiri
-
SUSE-SU-2021:0251-1
Security update for rubygem-nokogiri
-
UBUNTU-CVE-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 vulnerable only if the undocumented method…
-
USN-4175-1
ruby-nokogiri vulnerability
-
openSUSE-SU-2021:0237-1
Security update for rubygem-nokogiri
-
openSUSE-SU-2024:11912-1
ruby3.1-rubygem-nokogiri-1.13.3-1.1 on GA media
-
openSUSE-SU-2024:13165-1
ruby3.2-rubygem-nokogiri-1.13.9-1.7 on GA media
-
openSUSE-SU-2024:14174-1
ruby3.3-rubygem-nokogiri-1.15.5-1.5 on GA media
-
openSUSE-SU-2025:14697-1
ruby3.4-rubygem-nokogiri-1.18.2-1.1 on GA media
-
openSUSE-SU-2026:10356-1
ruby4.0-rubygem-nokogiri-1.18.9-1.4 on GA media
References
- https://github.com/sparklemotion/nokogiri/issues/1915
- https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc
- https://hackerone.com/reports/650835
- https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html
- https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html
- https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html
- https://security.gentoo.org/glsa/202006-05
- https://usn.ubuntu.com/4175-1/