CVE-2017-17790Ruby-lang Ruby
Critical 9.8 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 5.9% probability of exploitation in 30 days · percentile 94
- Auth required
- No
- Published
- Dec 20, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-74
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | ≥ 2.2 ≤ 2.2.8 |
| ruby-lang | ruby | ≥ 2.3 ≤ 2.3.5 |
| ruby-lang | ruby | ≥ 2.4 ≤ 2.4.2 |
| ruby-lang | ruby | 2.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- github.com Exploit Issue Tracking Third Party Advisory
- lists.debian.org
- lists.debian.org
- lists.debian.org
- www.debian.org