CVE-2017-17405
Published: 15 December 2017
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.
Priority
CVSS 3 base score: 8.8
Status
Package | Release | Status |
---|---|---|
ruby1.9.1 Launchpad, Ubuntu, Debian |
upstream |
Needs triage
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was released [1.9.3.484-2ubuntu1.6])
|
|
xenial |
Does not exist
|
|
zesty |
Does not exist
|
|
artful |
Does not exist
|
|
ruby2.0 Launchpad, Ubuntu, Debian |
upstream |
Needs triage
|
precise |
Does not exist
|
|
trusty |
Does not exist
(trusty was released [2.0.0.484-1ubuntu2.5])
|
|
xenial |
Does not exist
|
|
zesty |
Does not exist
|
|
artful |
Does not exist
|
|
ruby2.3 Launchpad, Ubuntu, Debian |
upstream |
Released
(2.3.6)
|
precise |
Does not exist
|
|
trusty |
Does not exist
|
|
xenial |
Released
(2.3.1-2~16.04.4)
|
|
zesty |
Released
(2.3.3-1ubuntu0.3)
|
|
artful |
Released
(2.3.3-1ubuntu1.1)
|
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17405
- https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
- https://github.com/ruby/ruby/commit/6d3f72e5be2312be312f2acbf3465b05293c1431
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/
- https://ubuntu.com/security/notices/USN-3515-1
- NVD
- Launchpad
- Debian