Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ruby-Lang | Ruby | >= 2.2, <= 2.2.8 |
| Debian | Debian Linux | 7.0 |
| Redhat | Enterprise Linux Desktop | 7.0 |
| Redhat | Enterprise Linux Server | 7.0 |
| Redhat | Enterprise Linux Server Aus | 7.4 |
| Redhat | Enterprise Linux Server Eus | 7.4 |
| Redhat | Enterprise Linux Server Tus | 7.4 |
| Redhat | Enterprise Linux Workstation | 7.0 |
Related Weaknesses (CWE)
References
- http://www.securityfocus.com/bid/102204Third Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1042004Third Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:0378Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0583Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0584Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0585Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2806
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlMailing ListThird Party Advisory
- https://www.debian.org/security/2018/dsa-4259Third Party Advisory
- https://www.exploit-db.com/exploits/43381/ExploitThird Party AdvisoryVDB Entry
- https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-Vendor Advisory
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/PatchRelease NotesVendor Advisory
- http://www.securityfocus.com/bid/102204Third Party AdvisoryVDB Entry
FAQ
What is CVE-2017-17405?
CVE-2017-17405 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 start...
How severe is CVE-2017-17405?
CVE-2017-17405 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2017-17405?
Check the references section above for vendor advisories and patch information. Affected products include: Ruby-Lang Ruby, Debian Debian Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus.