CVE-2017-17405
Last modified
CVE-2017-17405 is a vulnerability of currently unknown severity. 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. EPSS estimates a 73.93% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Ruby-Lang | Ruby | >= 2.2, <= 2.2.8 | — |
| Ruby-Lang | Ruby | >= 2.3, <= 2.3.5 | — |
| Ruby-Lang | Ruby | >= 2.4, <= 2.4.2 | — |
| Ruby-Lang | Ruby | 2.5.0 | Preview1 |
| Debian | Debian Linux | 7.0 | — |
| Debian | Debian Linux | 8.0 | — |
| Debian | Debian Linux | 9.0 | — |
| Redhat | Enterprise Linux Desktop | 7.0 | — |
| Redhat | Enterprise Linux Server | 7.0 | — |
| Redhat | Enterprise Linux Server Aus | 7.4 | — |
| Redhat | Enterprise Linux Server Aus | 7.6 | — |
| Redhat | Enterprise Linux Server Eus | 7.4 | — |
| Redhat | Enterprise Linux Server Eus | 7.5 | — |
| Redhat | Enterprise Linux Server Eus | 7.6 | — |
| Redhat | Enterprise Linux Server Tus | 7.4 | — |
| Redhat | Enterprise Linux Server Tus | 7.6 | — |
| Redhat | Enterprise Linux Workstation | 7.0 | — |
References
- http://www.securityfocus.com/bid/102204Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1042004Third Party Advisory, VDB 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://lists.debian.org/debian-lts-announce/2017/12/msg00024.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2018/dsa-4259Third Party Advisory
- https://www.exploit-db.com/exploits/43381/Exploit, Third Party Advisory, VDB Entry
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/Patch, Release Notes, Vendor Advisory
- http://www.securityfocus.com/bid/102204Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1042004Third Party Advisory, VDB 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://lists.debian.org/debian-lts-announce/2017/12/msg00024.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2018/dsa-4259Third Party Advisory
- https://www.exploit-db.com/exploits/43381/Exploit, Third Party Advisory, VDB Entry
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/Patch, Release Notes, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2017-17405?
How severe is CVE-2017-17405?
How do I fix CVE-2017-17405?
Are you affected by CVE-2017-17405?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
