CVE-2019-5477: Command Injection
Published Aug 16, 2019
·Updated
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#loadfile 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 Software
11 affected componentsFixes available
rubygems/rexical<1.0.7
1.0.7
rubygems/nokogiri<1.10.4
1.10.4
Nokogiri Nokogiri<=1.10.3
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.04
Canonical Ubuntu Linux=19.10
Debian Debian Linux=8.0
Debian Debian Linux=10.0
debian/rexical
1.0.7-11.0.7-21.0.8-1
debian/ruby-nokogiri
1.11.1+dfsg-21.11.1+dfsg-2+deb11u11.13.10+dfsg-21.18.2+dfsg-11.18.10+dfsg-3
Remediation
Patch Available
Event History
Aug 16, 2019
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 19, 2019
Advisory Published
07:27 PM
Jan 11, 2024
Data Sourced
via Launchpad·11:31 PM
Description
Feb 23, 2026
Data Sourced
via Ubuntu·04:28 PM
RemedyDescriptionSeverityAffected Software
Feb 26, 2026
Data Sourced
via Debian·04:31 PM
DescriptionAffected Software