CVE-2017-17405
CVE-2017-17405
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 8.8 · High · EPSS 73.8% · Public exploit · Fix available
- Published
- Updated
Stack: system
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
ruby1.9.1 Ubuntu:14.04:LTS
- Versions
- 1.9.3.194-8.1ubuntu2
- 1.9.3.448-1ubuntu1
- 1.9.3.448-1ubuntu2
- 1.9.3.484-1ubuntu1
- 1.9.3.484-1ubuntu2
- 1.9.3.484-2ubuntu1
- 1.9.3.484-2ubuntu1.1
- 1.9.3.484-2ubuntu1.2
- 1.9.3.484-2ubuntu1.3
- 1.9.3.484-2ubuntu1.5
- Affected ranges
- ECOSYSTEM: < 1.9.3.484-2ubuntu1.6
Update to 1.9.3.484-2ubuntu1.6
ruby2.0 Ubuntu:14.04:LTS
- Versions
- 2.0.0.299-2
- 2.0.0.343-1
- 2.0.0.343-1ubuntu1
- 2.0.0.353-1
- 2.0.0.353-1ubuntu1
- 2.0.0.484-1ubuntu1
- 2.0.0.484-1ubuntu2
- 2.0.0.484-1ubuntu2.1
- 2.0.0.484-1ubuntu2.2
- 2.0.0.484-1ubuntu2.4
- Affected ranges
- ECOSYSTEM: < 2.0.0.484-1ubuntu2.5
Update to 2.0.0.484-1ubuntu2.5
ruby2.3 Ubuntu:16.04:LTS
- Versions
- 2.3.0-1
- 2.3.0-2
- 2.3.0-4ubuntu2
- 2.3.0-4ubuntu3
- 2.3.0-5ubuntu1
- 2.3.1-2~16.04
- 2.3.1-2~16.04.2
- Affected ranges
- ECOSYSTEM: < 2.3.1-2~16.04.4
Update to 2.3.1-2~16.04.4
Original sources
- https://access.redhat.com/errata/RHSA-2018:0585
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
- https://access.redhat.com/errata/RHSA-2018:0378
- http://www.securityfocus.com/bid/102204
- http://www.securitytracker.com/id/1042004
- https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
- https://www.exploit-db.com/exploits/43381/
- https://access.redhat.com/errata/RHSA-2018:0584
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- https://access.redhat.com/errata/RHSA-2018:0583
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html
- https://www.debian.org/security/2018/dsa-4259
- https://access.redhat.com/errata/RHSA-2019:2806
- https://nvd.nist.gov/vuln/detail/CVE-2017-17405