First published: Fri 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#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.
Credit: support@hackerone.com support@hackerone.com
Affected Software | Affected Version | How to fix |
---|---|---|
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 | |
ubuntu/ruby-nokogiri | <1.8.2-1ubuntu0.1 | 1.8.2-1ubuntu0.1 |
ubuntu/ruby-nokogiri | <1.10.0+dfsg1-2ubuntu0.1 | 1.10.0+dfsg1-2ubuntu0.1 |
ubuntu/ruby-nokogiri | <1.10.3+dfsg1-2ubuntu0.1 | 1.10.3+dfsg1-2ubuntu0.1 |
ubuntu/ruby-nokogiri | <1.6.1+ | 1.6.1+ |
ubuntu/ruby-nokogiri | <1.6.7.2-3ubuntu0.1 | 1.6.7.2-3ubuntu0.1 |
debian/rexical | <=1.0.5-2 | 1.0.5-2+deb10u1 1.0.7-1 1.0.7-2 |
debian/ruby-nokogiri | <=1.10.0+dfsg1-2 | 1.10.0+dfsg1-2+deb10u1 1.11.1+dfsg-2 1.13.10+dfsg-2 1.15.4+dfsg-1 1.16.0+dfsg-2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.