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
| Product | Affected versions | Fixed 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
- RHSA-2018:0378 vendor-advisory
- RHSA-2018:0583 vendor-advisory
- RHSA-2018:0584 vendor-advisory
- RHSA-2018:0585 vendor-advisory
- github.com exploit issue-tracking third-party-advisory
- [debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security update mailing-list
- [debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security update mailing-list
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update mailing-list
- DSA-4259 vendor-advisory