CWE
77 78
Advisory Published
Advisory Published
Updated

CVE-2019-5477: Command Injection

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203