Back
CVE-2017-17790
CRITICAL
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.
Published: Dec 20, 2017
Modified: Jun 17, 2026
CWE-74
CVSS Metrics
CVSSv3
Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Products (4)
| Vendor | Product | Version |
|---|---|---|
| ruby-lang | ruby | * ≥ 2.2 |
| ruby-lang | ruby | * ≥ 2.3 |
| ruby-lang | ruby | * ≥ 2.4 |
| ruby-lang | ruby | 2.5.0 |
GitHub Security Advisory GHSA-47cm-jxff-w8wg
The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might...
References (18)
- https://access.redhat.com/errata/RHSA-2018:0378
- https://access.redhat.com/errata/RHSA-2018:0583
- https://access.redhat.com/errata/RHSA-2018:0584
- https://access.redhat.com/errata/RHSA-2018:0585
- https://github.com/ruby/ruby/pull/1777 Exploit, Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- https://www.debian.org/security/2018/dsa-4259
- https://access.redhat.com/errata/RHSA-2018:0378
- https://access.redhat.com/errata/RHSA-2018:0583
- https://access.redhat.com/errata/RHSA-2018:0584
- https://access.redhat.com/errata/RHSA-2018:0585
- https://github.com/ruby/ruby/pull/1777 Exploit, Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
Risk Scores
CVSS Score
9.8 / 10
EPSS Score
5.91%
Top 7% most likely to be exploited
Threat Score
41 / 100
Data Sources
NVD
EPSS
GitHub