Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2017-17405: Command Injection in Ruby Net::FTP (CVE-2017-17405)

Published Dec 15, 2017 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3
EPSS73.8%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Debian ProjectRed HatRuby-Lang
IdentifiersCVE-2017-17405CWE-77

A command injection vulnerability exists in Ruby's Net::FTP library prior to version 2.4.3. The methods Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use Kernel#open to open a local file. If the localfile argument begins with a pipe ('|'), the subsequent string is executed as a shell command. Since the default value for localfile is File.basename(remotefile), a malicious FTP server can supply a filename starting with '|', leading to arbitrary command execution on the client system.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A malicious FTP server can exploit this vulnerability to execute arbitrary commands on the client machine running vulnerable Ruby code that uses Net::FTP. This can lead to full compromise of the client system, depending on the privileges of the Ruby process.

Mitigation

If you can’t patch tonight, do this now.

As an immediate mitigation, avoid connecting to untrusted FTP servers and sanitize any input used as the localfile argument in Net::FTP methods. Consider using a safer file opening method that does not interpret the pipe character as a shell command.

Remediation

Patch, then assume compromise.

Upgrade Ruby to version 2.4.3 or later, where this vulnerability has been addressed. Ensure that any code using Net::FTP does not pass untrusted input as the localfile argument, and avoid using Kernel#open with untrusted data.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
Candidate exploits are awaiting analysis. View them in Mallory.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
Red HatEnterprise Linux Desktopoperating_system
Red HatEnterprise Linux Serveroperating_system
Red HatEnterprise Linux Server Ausoperating_system
Red HatEnterprise Linux Server Eusoperating_system
Red HatEnterprise Linux Server Tusoperating_system
Red HatEnterprise Linux Workstationoperating_system
Ruby-LangRubyapplication
FAQ

Frequently asked questions

Is CVE-2017-17405 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2017-17405 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2017-17405?
Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2017-17405.
Is there a patch for CVE-2017-17405?
Upgrade Ruby to version 2.4.3 or later, where this vulnerability has been addressed. Ensure that any code using Net::FTP does not pass untrusted input as the localfile argument, and avoid using Kernel#open with untrusted data.
What products are affected by CVE-2017-17405?
Ruby-Lang Ruby, Debian Project Debian Linux, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Server, Red Hat Enterprise Linux Server Aus, and 3 more.
How severe is CVE-2017-17405?
CVE-2017-17405 has a CVSS v3 score of 8.8 (High) and an EPSS score of 73.8% (99th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.