Critical severity · published Dec 20, 2017
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…
9.8
CVSS
5.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)5.9% · higher than 93% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RU
Ruby · Ruby-lang
2.2 through 2.2.8; 2.3 through 2.3.5; 2.4 through 2.4.2; 2.5.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2017-17790
CVE.org
https://www.cve.org/CVERecord?id=CVE-2017-17790
access.redhat.com
https://access.redhat.com/errata/RHSA-2018:0378
access.redhat.com
https://access.redhat.com/errata/RHSA-2018:0583
access.redhat.com
https://access.redhat.com/errata/RHSA-2018:0584
access.redhat.com
https://access.redhat.com/errata/RHSA-2018:0585
Exploit
https://github.com/ruby/ruby/pull/1777
lists.debian.org
https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
More from Ruby
9.8
CVE-2022-28738
A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2
9.8
CVE-2016-2338
An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby
9.8
CVE-2011-4121
The OpenSSL extension of Ruby (Git trunk) versions after 2011-09-01 up to 2011-11-03 always generated an exponent value of '1' to be used for private RSA key generation
9.8
CVE-2018-16395
An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3
9.8
CVE-2017-14064
Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call
