Vulnerabilities · 2017 · Ruby-lang
CVE-2017-17790
Ruby-lang Ruby vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ruby/ruby/pull/1777 · Exploit
- access.redhat.com/errata/RHSA-2018:0378
- access.redhat.com/errata/RHSA-2018:0583
- access.redhat.com/errata/RHSA-2018:0584
- access.redhat.com/errata/RHSA-2018:0585
- lists.debian.org/debian-lts-announce/2017/12/msg00024.html
- lists.debian.org/debian-lts-announce/2017/12/msg00025.html
- lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- nvd.nist.gov/vuln/detail/CVE-2017-17790
- cve.org/CVERecord?id=CVE-2017-17790
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.