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.
| Software | From | Fixed in |
|---|---|---|
| ruby-lang / ruby | 2.5.0-preview1 | 2.5.0-preview1.x |
| ruby-lang / ruby | 2.4 | 2.4.2.x |
| ruby-lang / ruby | 2.2 | 2.2.8.x |
| ruby-lang / ruby | 2.3 | 2.3.5.x |