CVE-2019-5477
Nokogiri Command Injection Vulnerability
Record from NVD · Published August 16, 2019
rexical is fixed in 1.0.7 (RubyGems)
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.
EPSS 6.14% · 93.6th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rexical | RubyGems | 1.0.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| debian | debian_linux | 8.0, 10.0 |
| nokogiri | nokogiri | 0 |
| canonical | ubuntu_linux | 16.04, 19.10, 19.04 |
Timeline
- Aug 16, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 28, 2023 CVE Updated
- Mar 6, 2026 Distribution Patch
- Mar 6, 2026 Security Advisory (5 in total, the first dated here)
- Sep 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-5477
vulnetix vdb fixes CVE-2019-5477
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-5477/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/sparklemotion/nokogiri/issues/1915 discussion
- https://lists.debian.org/debian-lts-announce/2019/09/msg00027.html advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00019.html advisory
- https://github.com/tenderlove/rexical/blob/master/CHANGELOG.rdoc technical
- https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html advisory
- https://security.gentoo.org/glsa/202006-05 advisory
- https://usn.ubuntu.com/4175-1/ advisory
- https://hackerone.com/reports/650835 technical