Skip to content
Noroxi
NVD / CVE Program· CNA mitre

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…

CriticalCVSS 9.8 · v3.0—No exploit Fix available

Noroxi assessment

Priority: Plan (action score 41/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 5.9% (FIRST EPSS); higher than 93.3% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: ruby1.8 (Debian:7) 1.8.7.358-7.1+deb7u5; ruby1.9.1 (Debian:7) 1.9.3.194-8.1+deb7u7; ruby2.1 (Debian:8) 2.1.5-2+deb8u4.

Add it to your regular patch cycle. Upgrade to ruby1.8 (Debian:7) 1.8.7.358-7.1+deb7u5; ruby1.9.1 (Debian:7) 1.9.3.194-8.1+deb7u7; ruby2.1 (Debian:8) 2.1.5-2+deb8u4 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Dec 20, 2017
Updated
Jun 16, 2026
EPSS
5.9% · 93th percentile

Report tools

JSON

Action score

41

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 5.9%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2017-17790

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
ruby-langruby

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • ruby-lang ruby2.2 and later · up to 2.2.8 inclusive
  • ruby-lang ruby2.3 and later · up to 2.3.5 inclusive
  • ruby-lang ruby2.4 and later · up to 2.4.2 inclusive
  • ruby-lang ruby2.5.0

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:7ruby1.8before 1.8.7.358-7.1+deb7u51.8.7.358-7.1+deb7u5
Debian:7ruby1.9.1before 1.9.3.194-8.1+deb7u71.9.3.194-8.1+deb7u7
Debian:8ruby2.1before 2.1.5-2+deb8u42.1.5-2+deb8u4
Debian:9ruby2.3before 2.3.3-1+deb9u32.3.3-1+deb9u3
Red Hat:enterprise_linux:7::clientrubybefore 0:2.0.0.648-33.el7_40:2.0.0.648-33.el7_4
Red Hat:enterprise_linux:7::clientruby-debuginfobefore 0:2.0.0.648-33.el7_40:2.0.0.648-33.el7_4
Red Hat:enterprise_linux:7::clientruby-develbefore 0:2.0.0.648-33.el7_40:2.0.0.648-33.el7_4
Red Hat:enterprise_linux:7::clientruby-docbefore 0:2.0.0.648-33.el7_40:2.0.0.648-33.el7_4
Red Hat:enterprise_linux:7::clientruby-irbbefore 0:2.0.0.648-33.el7_40:2.0.0.648-33.el7_4
Red Hat:enterprise_linux:7::clientruby-libsbefore 0:2.0.0.648-33.el7_40:2.0.0.648-33.el7_4
Red Hat:enterprise_linux:7::clientruby-tcltkbefore 0:2.0.0.648-33.el7_40:2.0.0.648-33.el7_4
Red Hat:enterprise_linux:7::clientrubygem-bigdecimalbefore 0:1.2.0-33.el7_40:1.2.0-33.el7_4
Red Hat:enterprise_linux:7::clientrubygem-io-consolebefore 0:0.4.2-33.el7_40:0.4.2-33.el7_4
Red Hat:enterprise_linux:7::clientrubygem-jsonbefore 0:1.7.7-33.el7_40:1.7.7-33.el7_4
Red Hat:enterprise_linux:7::clientrubygem-minitestbefore 0:4.3.2-33.el7_40:4.3.2-33.el7_4
Red Hat:enterprise_linux:7::clientrubygem-psychbefore 0:2.0.0-33.el7_40:2.0.0-33.el7_4
Red Hat:enterprise_linux:7::clientrubygem-rakebefore 0:0.9.6-33.el7_40:0.9.6-33.el7_4
Red Hat:enterprise_linux:7::clientrubygem-rdocbefore 0:4.0.0-33.el7_40:4.0.0-33.el7_4
Red Hat:enterprise_linux:7::clientrubygemsbefore 0:2.0.14.1-33.el7_40:2.0.14.1-33.el7_4
Red Hat:enterprise_linux:7::clientrubygems-develbefore 0:2.0.14.1-33.el7_40:2.0.14.1-33.el7_4
Red Hat:rhel_software_collections:3::el6rh-ruby22-rubybefore 0:2.2.9-19.el60:2.2.9-19.el6
Red Hat:rhel_software_collections:3::el6rh-ruby22-ruby-debuginfobefore 0:2.2.9-19.el60:2.2.9-19.el6
Red Hat:rhel_software_collections:3::el6rh-ruby22-ruby-develbefore 0:2.2.9-19.el60:2.2.9-19.el6
Red Hat:rhel_software_collections:3::el6rh-ruby22-ruby-docbefore 0:2.2.9-19.el60:2.2.9-19.el6

+96

Other highest-scoring records for the same primary product.

  • CVE-2017-17405Ruby before 2.4.3 allows Net::FTP command injection.
    57Plan
  • CVE-2008-3656Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value function in WEBrick::HTTP::DefaultFileHandler in WEBrick…
    52Plan
  • CVE-2021-28966In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
    47Plan

Published before and after this one in the same product

  • ← EarlierCVE-2017-10784Sep 19, 2017 · The Basic authentication code in WEBrick library in Ruby before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1 allows remote attackers…
    40Plan
  • ← EarlierCVE-2017-14033Sep 19, 2017 · The decode method in the OpenSSL::ASN1 module in Ruby before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1 allows attackers to cause a…
    32Monitor
  • Later →CVE-2017-17742Apr 3, 2018 · Ruby before 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1 allows an HTTP Response Splitting attack.
    23Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:ruby1.81.8.7.358-7.1+deb7u5 · Debian:7Package registry (OSV)
debian:ruby1.9.11.9.3.194-8.1+deb7u7 · Debian:7Package registry (OSV)
debian:ruby2.12.1.5-2+deb8u4 · Debian:8Package registry (OSV)
debian:ruby2.32.3.3-1+deb9u3 · Debian:9Package registry (OSV)
red hat:ruby0:2.0.0.648-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-debuginfo0:2.0.0.648-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-devel0:2.0.0.648-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-doc0:2.0.0.648-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-irb0:2.0.0.648-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-libs0:2.0.0.648-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-bigdecimal0:1.2.0-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-io-console0:0.4.2-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-json0:1.7.7-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-psych0:2.0.0-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-rdoc0:4.0.0-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygems0:2.0.14.1-33.el7_4 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
suse:ruby2.12.1.9-19.3.2 · SUSE:HPE Helion OpenStack 8Package registry (OSV)
suse:yast2-ruby-bindings3.1.53-9.8.1 · SUSE:OpenStack Cloud 7Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

References

All records