Vulnerability Details CVE-2017-17405
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.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.885
EPSS Ranking 99.5%
CVSS Severity
CVSS v3 Score 8.8
CVSS v2 Score 9.3
Products affected by CVE-2017-17405
-
cpe:2.3:a:ruby-lang:ruby:2.2.0
-
cpe:2.3:a:ruby-lang:ruby:2.2.1
-
cpe:2.3:a:ruby-lang:ruby:2.2.2
-
cpe:2.3:a:ruby-lang:ruby:2.2.3
-
cpe:2.3:a:ruby-lang:ruby:2.2.4
-
cpe:2.3:a:ruby-lang:ruby:2.2.5
-
cpe:2.3:a:ruby-lang:ruby:2.2.6
-
cpe:2.3:a:ruby-lang:ruby:2.2.7
-
cpe:2.3:a:ruby-lang:ruby:2.2.8
-
cpe:2.3:a:ruby-lang:ruby:2.3.0
-
cpe:2.3:a:ruby-lang:ruby:2.3.1
-
cpe:2.3:a:ruby-lang:ruby:2.3.2
-
cpe:2.3:a:ruby-lang:ruby:2.3.3
-
cpe:2.3:a:ruby-lang:ruby:2.3.4
-
cpe:2.3:a:ruby-lang:ruby:2.3.5
-
cpe:2.3:a:ruby-lang:ruby:2.4.0
-
cpe:2.3:a:ruby-lang:ruby:2.4.1
-
cpe:2.3:a:ruby-lang:ruby:2.4.2
-
cpe:2.3:a:ruby-lang:ruby:2.5.0
-
cpe:2.3:o:debian:debian_linux:7.0
-
cpe:2.3:o:debian:debian_linux:8.0
-
cpe:2.3:o:debian:debian_linux:9.0
-
cpe:2.3:o:redhat:enterprise_linux_desktop:7.0
-
cpe:2.3:o:redhat:enterprise_linux_server:7.0
-
cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4
-
cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6
-
cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4
-
cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5
-
cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6
-
cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4
-
cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6
-
cpe:2.3:o:redhat:enterprise_linux_workstation:7.0