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.
{
"versions": [
{
"introduced": "2.2"
},
{
"last_affected": "2.2.8"
},
{
"introduced": "2.3"
},
{
"last_affected": "2.3.5"
},
{
"introduced": "2.4"
},
{
"last_affected": "2.4.2"
},
{
"introduced": "0"
},
{
"last_affected": "2.5.0-preview1"
}
]
}