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 '|'
02 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 '|'
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 5.91% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 92.9% of scored records. A rank, not a probability.
- NVD base score
- 9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Low. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2017-12-20 09:00Z8 YR AGO
- Last updated
- 2024-08-05 20:59Z2 YR AGO
- Reserved
- 2017-12-20
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- Data version
- 5.1
- Document digest
- 724121b3428b87cc05c1ee01992189dc18db69f7a8b6cf8927fa0a77feef74b9
05 Affected products
06 References
- access.redhat.comRHSA-2018:0585https://access.redhat.com/errata/RHSA-2018:0585
- lists.debian.org[debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security updatehttps://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
- access.redhat.comRHSA-2018:0378https://access.redhat.com/errata/RHSA-2018:0378
- github.comhttps://github.com/ruby/ruby/pull/1777
- access.redhat.comRHSA-2018:0584https://access.redhat.com/errata/RHSA-2018:0584
- lists.debian.org[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security updatehttps://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- access.redhat.comRHSA-2018:0583https://access.redhat.com/errata/RHSA-2018:0583
- lists.debian.org[debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security updatehttps://lists.debian.org/debian-lts-announce/2017/12/msg00025.html
- www.debian.orgDSA-4259https://www.debian.org/security/2018/dsa-4259
07 Fixed in
Ubuntu 14.04 LTS
- ruby1.9.1 Fixed in 1.9.3.484-2ubuntu1.7
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- ruby2.3 Fixed in 2.3.1-2~16.04.5
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.