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 '|' character, a different vulnerability than CVE-2017-17405. NOTE: situations with untrusted input may be highly unlikely.
What to do
Fixed builds are available from Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | ruby2.3 | Fixed | 2.3.1-2~16.04.5 | UBUNTU-CVE-2017-17790 |
| Ubuntu 14.04 | ruby1.9.1 | Fixed | 1.9.3.484-2ubuntu1.7 | UBUNTU-CVE-2017-17790 |
| Red Hat Enterprise Linux 7 | ruby | Fixed | 0:2.0.0.648-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | ruby-devel | Fixed | 0:2.0.0.648-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | ruby-doc | Fixed | 0:2.0.0.648-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | ruby-irb | Fixed | 0:2.0.0.648-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | ruby-libs | Fixed | 0:2.0.0.648-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | ruby-tcltk | Fixed | 0:2.0.0.648-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygem-bigdecimal | Fixed | 0:1.2.0-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygem-io-console | Fixed | 0:0.4.2-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygem-json | Fixed | 0:1.7.7-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygem-minitest | Fixed | 0:4.3.2-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygem-psych | Fixed | 0:2.0.0-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygem-rake | Fixed | 0:0.9.6-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygem-rdoc | Fixed | 0:4.0.0-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygems | Fixed | 0:2.0.14.1-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7 | rubygems-devel | Fixed | 0:2.0.14.1-33.el7_4 | RHSA-2018:0378 |
| Red Hat Enterprise Linux 6 | ruby | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-docs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-irb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-rdoc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-ri | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | ruby-tcltk | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | ruby | Will not fix Will not fix |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:0585 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0378 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0584 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0583 (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4259 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2018:0585
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
- https://access.redhat.com/errata/RHSA-2018:0378
- https://github.com/ruby/ruby/pull/1777
- https://access.redhat.com/errata/RHSA-2018:0584
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- https://access.redhat.com/errata/RHSA-2018:0583
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html
- https://www.debian.org/security/2018/dsa-4259
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.