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
Status
Package | Release | Status |
---|---|---|
ruby1.9.1 Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
trusty |
Released
(1.9.3.484-2ubuntu1.6)
|
|
upstream |
Needs triage
|
|
xenial |
Does not exist
|
|
zesty |
Does not exist
|
|
ruby2.0 Launchpad, Ubuntu, Debian |
artful |
Does not exist
|
trusty |
Released
(2.0.0.484-1ubuntu2.5)
|
|
upstream |
Needs triage
|
|
xenial |
Does not exist
|
|
zesty |
Does not exist
|
|
ruby2.3 Launchpad, Ubuntu, Debian |
artful |
Released
(2.3.3-1ubuntu1.1)
|
trusty |
Does not exist
|
|
upstream |
Released
(2.3.6)
|
|
xenial |
Released
(2.3.1-2~16.04.4)
|
|
zesty |
Released
(2.3.3-1ubuntu0.3)
|
Severity score breakdown
Parameter | Value |
---|---|
Base score | 8.8 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | Required |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References
- 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
- https://www.cve.org/CVERecord?id=CVE-2017-17405
- NVD
- Launchpad
- Debian