CVE-2017-17405Ruby OS Command Injection
ruby1.9.1 - security update
Published Dec 15, 2017 · Updated Oct 31, 2026 · Also known as ALPINE-CVE-2017-17405, CLEANSTART-2026-WD93145, CLEANSTART-2026-YL35253, DEBIAN-CVE-2017-17405, DEBIAN-CVE-2017-17790, DLA-1221-1, DLA-1222-1, DSA-4259-1, MGASA-2017-0486, UBUNTU-CVE-2017-17405, USN-3515-1
Key Facts
Patch immediately- CVE-2017-17405 is a medium-severity vulnerability (CVSS 6.3 v3.1) affecting Ruby (Ruby-Lang), Debian Linux, Enterprise Linux Desktop (Redhat) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 74% probability of exploitation in the next 30 days.
- Fixed versions are available, including libruby2_1-2_1 2.1.9-19.3.2, rh-ruby22-ruby 0:2.2.9-19.el6, rh-ruby22-ruby 0:2.2.9-19.el7.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
6.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS (30-day exploit likelihood)
74%
Higher than 99.4% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
50/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2017-17405
- advisoryhttps://ubuntu.com/security/CVE-2017-17405
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2017-17405
- advisoryhttps://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
- advisoryRHSA-2018:0378
- advisoryRHSA-2018:0583
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.
Affected Products
148 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| RubyRuby-Lang | 2.5.0-preview1 | 2.2.8 |
| Debian LinuxDebian | 7.0, 8.0, 9.0 | n/a |
| Enterprise Linux DesktopRedhat | 7.0 | n/a |
| Enterprise Linux ServerRedhat | 7.0 | n/a |
| Enterprise Linux Server AusRedhat | 7.4, 7.6 | n/a |
Patched Releases
libruby2_1-2_1
2.1.9-19.3.2
rh-ruby22-ruby
0:2.2.9-19.el6, 0:2.2.9-19.el7
rh-ruby23-ruby
0:2.3.6-67.el6, 0:2.3.6-67.el7
rh-ruby24-ruby
0:2.4.3-90.el6, 0:2.4.3-90.el7
Ruby
0:2.0.0.648-33.el7_4, 2.0.0.648-33.el7_4, 2.0.0.p648-1.6.mga5, 2.2.8-1.1.mga6, 2.2.9-r0, 2.3.6-r0, 2.4.3-1.ph1, 2.4.3-1.ph2, 2.4.3-r0, 2.5.3-1.ph3, 2.2.8
ruby-3.2
2.4.3-r0
ruby-3.3
2.4.3-r0
ruby-devel
2.0.0.648-33.el7_4
ruby-doc
2.0.0.648-33.el7_4
ruby-irb
2.0.0.648-33.el7_4
ruby-libs
2.0.0.648-33.el7_4
ruby-tcltk
2.0.0.648-33.el7_4
ruby1.8
1.8.7.358-7.1+deb7u5
ruby1.9.1
1.9.3.194-8.1+deb7u7, 1.9.3.484-2ubuntu1.6
ruby2.0
2.0.0.484-1ubuntu2.5
ruby2.1
2.1.5-2+deb8u4, 2.1.9-19.3.2
ruby2.1-devel
2.1.9-19.3.2
ruby2.1-stdlib
2.1.9-19.3.2
ruby2.3
2.3.1-2~16.04.4, 2.3.3-1+deb9u3
rubygem-bigdecimal
1.2.0-33.el7_4
rubygem-io-console
0.4.2-33.el7_4
rubygem-json
1.7.7-33.el7_4
rubygem-minitest
4.3.2-33.el7_4
rubygem-psych
2.0.0-33.el7_4
rubygem-rake
0.9.6-33.el7_4
Timeline
Publicly disclosed
Dec 15, 2017
Last updated
Oct 31, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
- advisorysecurity.alpinelinux.org · CVE-2017-17405
- advisoryubuntu.com · CVE-2017-17405
- advisorycve.org · CVERecord
- advisoryruby-lang.org · CVE-2017-17405
- advisoryRHSA-2018:0378
FAQ
Common Questions.
Ruby before 2.4.3 allows Net::FTP command injection.
Affected: Ruby (Ruby-Lang) versions 2.5.0-preview1; Debian Linux versions 7.0, 8.0, 9.0; Enterprise Linux Desktop (Redhat) versions 7.0, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including libruby2_1-2_1 2.1.9-19.3.2, rh-ruby22-ruby 0:2.2.9-19.el6, rh-ruby22-ruby 0:2.2.9-19.el7.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2017-17405 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo