Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2017-17790

published

ruby: Command injection in lib/resolv.rb:lazy_initialize() allows arbitrary code execution

Title from Red Hat VEX

Published
20 Dec 2017, 09:00:00 UTC
Updated
05 Aug 2024, 20:59:17 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — n/an/a Affected Not stated mitre
Amazon Linux AL2 Release evaluationALAS2-2018-983 Fixed Not stated Amazon Linux assessment
Debian jessie ruby2.1 Advisory build 2.1.5-2+deb8u4 DLA-1421-1
Oracle Linux 7 rubyaarch64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubysrc Advisory build 2.2.9-19.el6 RHSA-2018:0583
Debian stretch ruby2.3 Advisory build 2.3.3-1+deb9u3 DSA-4259-1
Debian wheezy ruby1.8 Advisory build 1.8.7.358-7.1+deb7u5 DLA-1222-1
Debian wheezy ruby1.9.1 Advisory build 1.9.3.194-8.1+deb7u7 DLA-1221-1
Show 94 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 7 rubyx86_64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-develaarch64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-develx86_64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-docaarch64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-docx86_64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-irbaarch64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-irbx86_64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-libsaarch64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-libsx86_64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-tcltkaarch64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 ruby-tcltkx86_64 Advisory build 0:2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-bigdecimalaarch64 Advisory build 0:1.2.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-bigdecimalx86_64 Advisory build 0:1.2.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-io-consoleaarch64 Advisory build 0:0.4.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-io-consolex86_64 Advisory build 0:0.4.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-jsonaarch64 Advisory build 0:1.7.7-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-jsonx86_64 Advisory build 0:1.7.7-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-minitestaarch64 Advisory build 0:4.3.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-minitestx86_64 Advisory build 0:4.3.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-psychaarch64 Advisory build 0:2.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-psychx86_64 Advisory build 0:2.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rakeaarch64 Advisory build 0:0.9.6-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rakex86_64 Advisory build 0:0.9.6-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rdocaarch64 Advisory build 0:4.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rdocx86_64 Advisory build 0:4.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygemsaarch64 Advisory build 0:2.0.14.1-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygemsx86_64 Advisory build 0:2.0.14.1-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygems-develaarch64 Advisory build 0:2.0.14.1-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygems-develx86_64 Advisory build 0:2.0.14.1-33.el7_4 ELSA-2018-0378
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubyx86_64 Advisory build 2.2.9-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-ruby-debuginfox86_64 Advisory build 2.2.9-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-ruby-develx86_64 Advisory build 2.2.9-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-ruby-docnoarch Advisory build 2.2.9-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-ruby-irbnoarch Advisory build 2.2.9-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-ruby-libsx86_64 Advisory build 2.2.9-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-ruby-tcltkx86_64 Advisory build 2.2.9-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-bigdecimalx86_64 Advisory build 1.2.6-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-io-consolex86_64 Advisory build 0.4.3-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-jsonx86_64 Advisory build 1.8.1.1-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-minitestnoarch Advisory build 5.4.3-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-power_assertnoarch Advisory build 0.2.2-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-psychx86_64 Advisory build 2.0.8.1-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-rakenoarch Advisory build 10.4.2-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-rdocnoarch Advisory build 4.2.0-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygem-test-unitnoarch Advisory build 3.0.8-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygemsx86_64 Advisory build 2.4.5.4-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby22-rubygems-develnoarch Advisory build 2.4.5.4-19.el6 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubysrc Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubyx86_64 Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-ruby-debuginfox86_64 Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-ruby-develx86_64 Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-ruby-docnoarch Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-ruby-irbnoarch Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-ruby-libsx86_64 Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-ruby-tcltkx86_64 Advisory build 2.3.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-bigdecimalx86_64 Advisory build 1.2.8-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-did_you_meanx86_64 Advisory build 1.0.0-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-io-consolex86_64 Advisory build 0.4.5-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-jsonx86_64 Advisory build 1.8.3.1-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-minitestnoarch Advisory build 5.8.5-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-net-telnetx86_64 Advisory build 0.1.1-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-power_assertnoarch Advisory build 0.2.6-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-psychx86_64 Advisory build 2.1.0.1-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-rakenoarch Advisory build 10.4.2-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-rdocnoarch Advisory build 4.2.1-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygem-test-unitnoarch Advisory build 3.1.5-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygemsnoarch Advisory build 2.5.2.2-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby23-rubygems-develnoarch Advisory build 2.5.2.2-67.el6 RHSA-2018:0585
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubysrc Advisory build 2.4.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubyx86_64 Advisory build 2.4.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-ruby-debuginfox86_64 Advisory build 2.4.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-ruby-develx86_64 Advisory build 2.4.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-ruby-docnoarch Advisory build 2.4.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-ruby-irbnoarch Advisory build 2.4.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-ruby-libsx86_64 Advisory build 2.4.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-bigdecimalx86_64 Advisory build 1.3.0-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-did_you_meanx86_64 Advisory build 1.1.0-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-io-consolex86_64 Advisory build 0.4.6-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-jsonx86_64 Advisory build 2.0.4-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-minitestnoarch Advisory build 5.10.1-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-net-telnetx86_64 Advisory build 0.1.1-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-opensslx86_64 Advisory build 2.0.5-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-power_assertnoarch Advisory build 0.4.1-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-psychx86_64 Advisory build 2.2.2-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-rakenoarch Advisory build 12.0.0-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-rdocnoarch Advisory build 5.0.0-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-test-unitnoarch Advisory build 3.2.3-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygem-xmlrpcnoarch Advisory build 0.2.1-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygemsnoarch Advisory build 2.6.14-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-6 rh-ruby24-rubygems-develnoarch Advisory build 2.6.14-90.el6 RHSA-2018:0584
Red Hat Enterprise Linux RHEL-7 rh-ruby22-rubysrc Advisory build 2.2.9-19.el7 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-7 rh-ruby22-rubyx86_64 Advisory build 2.2.9-19.el7 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-7 rh-ruby22-ruby-debuginfox86_64 Advisory build 2.2.9-19.el7 RHSA-2018:0583
Red Hat Enterprise Linux RHEL-7 rh-ruby22-ruby-develx86_64 Advisory build 2.2.9-19.el7 RHSA-2018:0583

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · mitre · cna

Vendor advisories explicitly linked to this CVE.

19

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) mitre · cna

Weaknesses

1
  • n/a (mitre · cna)

References

9

Provider assertions

2

mitre · cna

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
699d3c6b7c19fb9ddf35471f92d0acb09cb9c20d703152aff7bdf0bb4f5236dd
Ingested
23 Sep 2026, 07:42:19 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected