ADVISORIES

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…

    CVE-2019-5477 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2019-5477
    CVE-2019-5477 Alpine Updated 18 November 2026
  • 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…

    CVE-2019-5477 Debian Updated 21 September 2026
  • DLA-1933-1

    ruby-nokogiri - security update

    CVE-2019-5477 Debian Updated 20 November 2026
  • DLA-3149-1

    ruby-nokogiri - security update

    CVE-2019-5477CVE-2020-26247CVE-2022-24836 Debian Updated 20 November 2026
  • DLA-3150-1

    rexical - security update

    CVE-2019-5477 Debian Updated 20 November 2026
  • GHSA-cr5j-953j-xw5p

    Nokogiri Command Injection Vulnerability

    Critical CVE-2019-5477 RubyGems Updated 18 February 2024
  • 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,…

    CVE-2016-10127CVE-2018-15727CVE-2018-19039CVE-2018-558213 SUSE Updated 4 February 2026
  • 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,…

    CVE-2015-3448CVE-2016-10127CVE-2018-15727CVE-2018-19039 SUSE Updated 2 May 2025
  • SUSE-SU-2021:0210-1

    Security update for rubygem-nokogiri

    CVE-2019-5477CVE-2020-26247 SUSE Updated 4 February 2026
  • SUSE-SU-2021:0251-1

    Security update for rubygem-nokogiri

    CVE-2019-5477CVE-2020-26247 SUSE Updated 4 February 2026
  • 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…

    CVE-2019-5477 Ubuntu Updated 4 February 2026
  • USN-4175-1

    ruby-nokogiri vulnerability

    CVE-2019-5477 Ubuntu Updated 10 February 2026
  • openSUSE-SU-2021:0237-1

    Security update for rubygem-nokogiri

    CVE-2019-5477CVE-2020-26247 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11912-1

    ruby3.1-rubygem-nokogiri-1.13.3-1.1 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13165-1

    ruby3.2-rubygem-nokogiri-1.13.9-1.7 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14174-1

    ruby3.3-rubygem-nokogiri-1.15.5-1.5 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:14697-1

    ruby3.4-rubygem-nokogiri-1.18.2-1.1 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:10356-1

    ruby4.0-rubygem-nokogiri-1.18.9-1.4 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 14 March 2026

References