Back
CVE-2017-17405
Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use…
High8.8EPSS 73.8%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
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 (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Weakness
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)
- 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://trackcve.app/cve/CVE-2017-17405)Record last updated .