CVE-2017-17790: Command Injection

Published Dec 20, 2017
·
Updated

Last updated 25 August 2025

Other sources

The lazyinitialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a '|' character, a different vulnerability than CVE-2017-17405. NOTE: situations with untrusted input may be highly unlikely.

Launchpad

Affected Software

8 affected components
debian/ruby1.8
debian/ruby1.9.1
debian/ruby2.1
debian/ruby2.5
ruby-lang Ruby>=2.2<=2.2.8
ruby-lang Ruby>=2.3<=2.3.5
ruby-lang Ruby>=2.4<=2.4.2
ruby-lang Ruby=2.5.0-preview1

Event History

Dec 20, 2017
CVE Published
via MITRE·09:00 AM
Data Sourced
via MITRE·09:00 AM
Description
Data Sourced
via NVD·09:29 AM
DescriptionSeverityWeaknessAffected Software
Dec 21, 2017
Data Sourced
via Red Hat·10:30 AM
DescriptionSeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:34 PM
Description
Feb 19, 2026
Data Sourced
via Ubuntu·07:41 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2017-17790?

CVE-2017-17790 is a vulnerability in the Ruby programming language that allows for Command Injection attacks.

2

How does CVE-2017-17790 work?

CVE-2017-17790 works by exploiting the lazy_initialize function in lib/resolv.rb in Ruby through version 2.4.3, which uses Kernel#open and can be abused with a Resolv::Hosts::new argument starting with a '|' character.

3

How severe is CVE-2017-17790?

CVE-2017-17790 has a severity level of low.

4

Which versions of Ruby are affected by CVE-2017-17790?

Ruby versions up to and including 2.4.3 are affected by CVE-2017-17790.

5

How can I fix CVE-2017-17790?

To fix CVE-2017-17790, update Ruby to version 2.5.1-1 or later.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203