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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2017
- CVE-2017-17381The Virtio Vring implementation in QEMU allows local OS gues…6.5
- CVE-2017-17382Citrix NetScaler Application Delivery Controller (ADC) and N…
- CVE-2017-17383Jenkins through 2.93 allows remote authenticated administrat…
- CVE-2017-17384ISPConfig 3.x before 3.1.9 allows remote authenticated users…
- CVE-2017-1739IBM Curam Social Program Management 6.0.5, 6.1.1, 6.2.0, and…
- CVE-2017-1740IBM Curam Social Program Management 6.0.5, 6.1.1, 6.2.0, 7.0…
- CVE-2017-17406This vulnerability allows remote attackers to execute arbitr…
- CVE-2017-17407This vulnerability allows remote attackers to execute arbitr…
- CVE-2017-17408This vulnerability allows remote attackers to execute arbitr…
- CVE-2017-17409This vulnerability allows remote attackers to execute arbitr…
- CVE-2017-1741IBM WebSphere Application Server 7.0, 8.0, 8.5, and 9.0 coul…4.3
- CVE-2017-17410This vulnerability allows remote attackers to execute arbitr…
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
