CVE-2017-17405
Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use…
- 8.8HighCVSS base score
- 73.8%Exploitation in 30 daysEPSS · top 0.5% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it. A reference of the record is tagged as an exploit.
Show the exploits2
Exploit-DB1 entry
- Ruby < 2.2.8 / < 2.3.5 / < 2.4.2 / < 2.5.0-preview1 - 'NET::Ftp' Command Injection (Exploit-DB entry) (opens in a new tab)
EDB-ID 43381local, rubypublished 2 Dec 2017Not verified
References tagged exploit1 reference
- 43381 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 10 days later
· 10 days later
Published
- 7 years later
· 7 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 73.8% · top 0.5% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
n/a
- affected n/a
References
14
- RHSA-2018:0585 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2018:0378 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 102204 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 1042004 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- 43381 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- RHSA-2018:0584 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2018:0583 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- DSA-4259 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- RHSA-2019:2806 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2017-8570 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2017-17405)Record last updated .