Skip to content
OpenAdvisories
Unscored CVE-2017-17790 EUVD-2017-8941GHSA-47cm-jxff-w8wg

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demon…

Published Dec 20, 2017 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 ruby2.3 2.3.3-1+deb9u3 DSA-4259-1
Debian 8 ruby2.1 2.1.5-2+deb8u4 DLA-1421-1
Debian 7 ruby1.8 1.8.7.358-7.1+deb7u5 DLA-1222-1
Debian 7 ruby1.9.1 1.9.3.194-8.1+deb7u7 DLA-1221-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ruby2.3 2.3.1-2~16.04.5 USN-3528-1
Ubuntu 14.04 LTS ruby1.9.1 1.9.3.484-2ubuntu1.7 USN-3528-1
ReleasePackageFixed inAdvisory
RHEL 7 ruby +5 2.0.0.648-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-bigdecimal 1.2.0-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-io-console 0.4.2-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-json 1.7.7-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-minitest 4.3.2-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-psych 2.0.0-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-rake 0.9.6-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-rdoc 4.0.0-33.el7_4 RHSA-2018:0378
RHEL 7 rubygems +1 2.0.14.1-33.el7_4 RHSA-2018:0378
RHEL 3 rh-ruby22-ruby +5 2.2.9-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-bigdecimal 1.2.6-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-io-console 0.4.3-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-json 1.8.1.1-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-minitest 5.4.3-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-power_assert 0.2.2-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-psych 2.0.8.1-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-rake 10.4.2-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-rdoc 4.2.0-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-test-unit 3.0.8-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygems +1 2.4.5.4-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby23-ruby +5 2.3.6-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-bigdecimal 1.2.8-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-did_you_mean 1.0.0-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-io-console 0.4.5-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-json 1.8.3.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-minitest 5.8.5-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-net-telnet 0.1.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-power_assert 0.2.6-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-psych 2.1.0.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-rake 10.4.2-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-rdoc 4.2.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-test-unit 3.1.5-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygems +1 2.5.2.2-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby24-ruby +4 2.4.3-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-bigdecimal 1.3.0-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-did_you_mean 1.1.0-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-io-console 0.4.6-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-json 2.0.4-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-minitest 5.10.1-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-net-telnet 0.1.1-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-openssl 2.0.5-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-power_assert 0.4.1-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-psych 2.2.2-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-rake 12.0.0-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-rdoc 5.0.0-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-test-unit 3.2.3-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygem-xmlrpc 0.2.1-90.el6 RHSA-2018:0584
RHEL 3 rh-ruby24-rubygems +1 2.6.14-90.el6 RHSA-2018:0584
ReleasePackageFixed inAdvisory
SLES 12 SP5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP4 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP3 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP2 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP2 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP4 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP3 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP2 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP2 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud Crowbar 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 7 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 7 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
SUSE HPE Helion OpenStack 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE Enterprise Storage 5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 ruby +5 2.0.0.648-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygem-bigdecimal 1.2.0-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygem-io-console 0.4.2-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygem-json 1.7.7-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygem-minitest 4.3.2-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygem-psych 2.0.0-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygem-rake 0.9.6-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygem-rdoc 4.0.0-33.amzn2.0.1 ALAS2-2018-983
Amazon Linux 2 rubygems +1 2.0.14.1-33.amzn2.0.1 ALAS2-2018-983

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 ruby +5 2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-bigdecimal 1.2.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-io-console 0.4.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-json 1.7.7-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-minitest 4.3.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-psych 2.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rake 0.9.6-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rdoc 4.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygems +1 2.0.14.1-33.el7_4 ELSA-2018-0378

Advisories 12

References