Skip to content

CVE-2017-17790 The lazy_initialize 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 '|'...

CriticalCVSS 9.8 EPSS 5.9%
Published
Updated
Exploit status
No public exploit known

Description

The lazy_initialize 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.

Affected products

ProductAffected versionsFixed in
ruby-lang ruby >= 2.2, <= 2.2.8 No fix listed
ruby-lang ruby >= 2.3, <= 2.3.5 No fix listed
ruby-lang ruby >= 2.4, <= 2.4.2 No fix listed
ruby-lang ruby = 2.5.0-preview1 No fix listed

References