RCE in Ruby-Lang Ruby
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.738 (99.5th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 99th percentile — 99.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.738 · newest: 0.738 · change: 0.000
Affected products
- Ruby-Lang Ruby — versions 2.5.0
- Debian Linux — versions 7.0, 8.0, 9.0
- Red Hat Enterprise Linux Desktop — versions 7.0
- Red Hat Enterprise Linux Server — versions 7.0
- Red Hat Enterprise Linux Server Aus — versions 7.4, 7.6
- Red Hat Enterprise Linux Server Eus — versions 7.4, 7.5, 7.6
- Red Hat Enterprise Linux Server Tus — versions 7.4, 7.6
- Red Hat Enterprise Linux Workstation — versions 7.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- access.redhat.com/errata/RHSA-2018:0585 (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2017/12/msg00024.html (mailing-list, Mailing List, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:0378 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/102204 (VDB Entry, Third Party Advisory, vdb-entry)
- www.securitytracker.com/id/1042004 (VDB Entry, Third Party Advisory, vdb-entry)
- www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/ (Vendor Advisory)
- www.exploit-db.com/exploits/43381/ (Exploit, VDB Entry, Third Party Advisory, exploit)
- access.redhat.com/errata/RHSA-2018:0584 (vendor-advisory, Third Party Advisory)
- www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/ (Patch, Release Notes, Vendor Advisory)
- lists.debian.org/debian-lts-announce/2018/07/msg00012.html (mailing-list, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2017-17405?
- CVE-2017-17405 is a high-severity vulnerability in Ruby-Lang Ruby, classified under OS Command Injection. CVSS score: 8.8/10. Published 2017-12-15.
- How severe is CVE-2017-17405?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2017-17405 known to be exploited?
- 23 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.