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.
2017-12-20T09:29:01.477
2025-04-20T01:37:25.860
Deferred
CVSSv3.0: 9.8 (CRITICAL)
AV:N/AC:L/Au:N/C:P/I:P/A:P
10.0
6.4
Type | Vendor | Product | Version/Range | Vulnerable? |
---|---|---|---|---|
Application | ruby-lang | ruby | ≤ 2.2.8 | Yes |
Application | ruby-lang | ruby | ≤ 2.3.5 | Yes |
Application | ruby-lang | ruby | ≤ 2.4.2 | Yes |
Application | ruby-lang | ruby | 2.5.0 | Yes |