Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2017-17405: Ruby before 2.4.3 allows Net::FTP command injection.

HighCVSS 8.8 · v3.0—Proof of concept Fix available

Noroxi assessment

Priority: Plan (action score 57/100)

  • Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 73.8% (FIRST EPSS); higher than 99.4% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
  • Fixed version: ruby (Alpine:v3.10) 2.4.3-r0; ruby (Alpine:v3.3) 2.2.9-r0; ruby (Alpine:v3.4) 2.3.6-r0.

Add it to your regular patch cycle. Upgrade to ruby (Alpine:v3.10) 2.4.3-r0; ruby (Alpine:v3.3) 2.2.9-r0; ruby (Alpine:v3.4) 2.3.6-r0 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

Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use Kernel#open to open a local file. If the localfile argument starts with the "|" pipe character, the command following the pipe character is executed. The default value of localfile is File.basename(remotefile), so malicious FTP servers could cause arbitrary command execution.

Published
Dec 15, 2017
Updated
Jun 16, 2026
EPSS
73.8% · 99th percentile

Report tools

JSON

Action score

57

Plan

Add it to your regular patch cycle.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
22 / 30 · 73.8%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

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

Follow CVE-2017-17405

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
debiandebian linux
redhatenterprise linux desktop
redhatenterprise linux server
redhatenterprise linux server aus
redhatenterprise linux server eus
redhatenterprise linux server tus
redhatenterprise linux workstation

Affected versions

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

  • debian debian linux7.0
  • debian debian linux8.0
  • debian debian linux9.0
  • redhat enterprise linux desktop7.0
  • redhat enterprise linux server7.0
  • redhat enterprise linux server aus7.4
  • redhat enterprise linux server aus7.6
  • redhat enterprise linux server eus7.4

Package-level exposure

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

EcosystemPackageAffected rangeFix
Alpine:v3.10rubyfrom 2.2 · before 2.4.3-r02.4.3-r0
Alpine:v3.3rubyfrom 2.2 · before 2.2.9-r02.2.9-r0
Alpine:v3.4rubyfrom 2.2 · before 2.3.6-r02.3.6-r0
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_aus:7.3::serverrubybefore 0:2.0.0.648-30.el7_30:2.0.0.648-30.el7_3

+96

Other highest-scoring records for the same primary product.

  • 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
  • CVE-2017-14064Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call.
    42Plan

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-17790Dec 20, 2017 · The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as…
    41Plan

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
alpine:ruby2.4.3-r0 · Alpine:v3.10Package registry (OSV)
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

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Exploit-DB entry ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrylocal2017-12-02

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.

  1. First PoC-13 d
  2. Published
  3. TodayNov 16, 2026+3258 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

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: 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.
  • A user must open a link or visit a page.
  • 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
Required
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

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

nvd-primary

Root cause

User input is inserted as text into a shell command. The shell may interpret special characters in the input as part of the command.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const host = req.body.host;exec("ping -c 1 " + host, onResult);

Fixed

ts
const host = req.body.host;if (!/^[a-z0-9.-]{1,253}$/i.test(host)) return res.sendStatus(400);execFile("ping", ["-c", "1", host], onResult);

References

All records