
CVE catalog
CVE-2019-5477
ruby-nokogiri: CVE-2019-5477
- Severity
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 5.90% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | rexical | sid | 1.0.8-1 | fixed |
| Debian | rexical | forky | 1.0.8-1 | fixed |
| Debian | rexical | trixie | 1.0.7-2 | fixed |
| Debian | rexical | bookworm | 1.0.7-2 | fixed |
| Debian | ruby-nokogiri | sid | 1.19.4+dfsg-1 | fixed |
| Debian | ruby-nokogiri | forky | 1.19.4+dfsg-1 | fixed |
| Debian | ruby-nokogiri | trixie | 1.18.2+dfsg-1 | fixed |
| Debian | ruby-nokogiri | bookworm | 1.13.10+dfsg-2 | fixed |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.6.2+ds-2build2 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.6.3-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.1-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.2-3 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.2-3build1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.2-3ubuntu0.1 | fixed |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.0-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.1-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.1-1build1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.2-1build1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.2-1ubuntu0.1 | fixed |
| Suse | rubygem-nokogiri | openstack cloud 7 | 1.6.1-5.3.1 | fixed |
| Suse | rubygem-nokogiri | openstack cloud crowbar 8 | 1.6.1-5.3.1 | fixed |
| Suse | rubygem-nokogiri | openstack cloud crowbar 9 | 1.6.1-5.3.1 | fixed |
| Ubuntu | ruby-nokogiri | pro | 1.5.9-2 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.5.9-3 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.6.0-1 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.6.1+ds-1 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.6.1+ds-1ubuntu0.1~esm1 | fixed |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.6.2+ds-2build2 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.6.3-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.1-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.2-3 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.2-3build1 | vulnerable |
| Ubuntu | ruby-nokogiri | 16.04 | 1.6.7.2-3ubuntu0.1 | fixed |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.0-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.1-1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.1-1build1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.2-1build1 | vulnerable |
| Ubuntu | ruby-nokogiri | 18.04 | 1.8.2-1ubuntu0.1 | fixed |
| Suse | rubygem-nokogiri | linux enterprise high availability extension 15 | 1.8.5-3.6.1 | fixed |
| Suse | rubygem-nokogiri | linux enterprise high availability extension 15 sp1 | 1.8.5-3.6.1 | fixed |
| Suse | rubygem-nokogiri | linux enterprise high availability extension 15 sp2 | 1.8.5-3.6.1 | fixed |
| Opensuse | rubygem-nokogiri | leap 15.2 | 1.8.5-lp152.4.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | rexical | source | sid | 1.0.7-1 | not yet assigned | Not reported | [940905] |
| Debian | rexical | source | forky | 1.0.7-1 | not yet assigned | Not reported | [940905] |
| Debian | rexical | source | trixie | 1.0.7-1 | not yet assigned | Not reported | [940905] |
| Debian | rexical | source | bookworm | 1.0.7-1 | not yet assigned | Not reported | [940905] |
| Debian | ruby-nokogiri | source | sid | 1.10.4+dfsg1-1 | not yet assigned | Not reported | [934802] |
| Debian | ruby-nokogiri | source | forky | 1.10.4+dfsg1-1 | not yet assigned | Not reported | [934802] |
| Debian | ruby-nokogiri | source | trixie | 1.10.4+dfsg1-1 | not yet assigned | Not reported | [934802] |
| Debian | ruby-nokogiri | source | bookworm | 1.10.4+dfsg1-1 | not yet assigned | Not reported | [934802] |
| Ubuntu | ruby-nokogiri | deb | 16.04 | 1.6.7.2-3ubuntu0.1 | Not reported | USN-4175-1 | Not reported |
| Ubuntu | ruby-nokogiri | deb | 18.04 | 1.8.2-1ubuntu0.1 | Not reported | USN-4175-1 | Not reported |
| Suse | rubygem-nokogiri | rpm | openstack cloud 7 | 1.6.1-5.3.1 | Not reported | SUSE-SU-2021:0210-1 | Not reported |
| Suse | rubygem-nokogiri | rpm | openstack cloud crowbar 8 | 1.6.1-5.3.1 | Not reported | SUSE-SU-2021:0210-1 | Not reported |
| Suse | rubygem-nokogiri | rpm | openstack cloud crowbar 9 | 1.6.1-5.3.1 | Not reported | SUSE-SU-2021:0210-1 | Not reported |
| Ubuntu | ruby-nokogiri | deb | pro | 1.6.1+ds-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2019-5477 | Not reported |
| Ubuntu | ruby-nokogiri | deb | 16.04 | 1.6.7.2-3ubuntu0.1 | Not reported | UBUNTU-CVE-2019-5477 | Not reported |
| Ubuntu | ruby-nokogiri | deb | 18.04 | 1.8.2-1ubuntu0.1 | Not reported | UBUNTU-CVE-2019-5477 | Not reported |
| Suse | rubygem-nokogiri | rpm | linux enterprise high availability extension 15 | 1.8.5-3.6.1 | Not reported | SUSE-SU-2021:0251-1 | Not reported |
| Suse | rubygem-nokogiri | rpm | linux enterprise high availability extension 15 sp1 | 1.8.5-3.6.1 | Not reported | SUSE-SU-2021:0251-1 | Not reported |
| Suse | rubygem-nokogiri | rpm | linux enterprise high availability extension 15 sp2 | 1.8.5-3.6.1 | Not reported | SUSE-SU-2021:0251-1 | Not reported |
| Opensuse | rubygem-nokogiri | rpm | leap 15.2 | 1.8.5-lp152.4.3.1 | Not reported | OPENSUSE-SU-2021:0237-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [rexical]Fixed
Details (2)
1.0.7-2· all · bookwormFixed · Fixed:
1.0.7-1dsa · rexical · debian · bookworm; dsa · rexical · debian · 12
1.0.7-2· all · bookwormFixed · Fixed:
1.0.7-1dsa · rexical · debian · bookworm; dsa · rexical · debian · 12
- [ruby-nokogiri]Fixed
Source package: [ruby-nokogiri]
Details (2)
1.13.10+dfsg-2+b1· amd64 · bookwormFixed · Fixed:
1.10.4+dfsg1-1dsa · ruby-nokogiri · debian · bookworm; dsa · ruby-nokogiri · debian · 12
1.13.10+dfsg-2+b1· arm64 · bookwormFixed · Fixed:
1.10.4+dfsg1-1dsa · ruby-nokogiri · debian · bookworm; dsa · ruby-nokogiri · debian · 12
[Debian 13 (Trixie)]
- [rexical]Fixed
Details (2)
1.0.7-2· all · trixieFixed · Fixed:
1.0.7-1dsa · rexical · debian · 13
1.0.7-2· all · trixieFixed · Fixed:
1.0.7-1dsa · rexical · debian · 13
- [ruby-nokogiri]Fixed
Source package: [ruby-nokogiri]
Details (2)
1.18.2+dfsg-1+b1· amd64 · trixieFixed · Fixed:
1.10.4+dfsg1-1dsa · ruby-nokogiri · debian · 13
1.18.2+dfsg-1+b1· arm64 · trixieFixed · Fixed:
1.10.4+dfsg1-1dsa · ruby-nokogiri · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10356-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2019-5477]
- [https://osv.dev/vulnerability/DLA-1933-1]
- [https://osv.dev/vulnerability/DLA-3149-1]
- [https://osv.dev/vulnerability/DLA-3150-1]
- [https://osv.dev/vulnerability/SUSE-SU-2021:0210-1]
- [https://osv.dev/vulnerability/SUSE-SU-2021:0251-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2019-5477]
- [https://osv.dev/vulnerability/USN-4175-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:0237-1]
- [https://security-tracker.debian.org/tracker/CVE-2019-5477]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]