Vulnerabilities · 2017 · Ruby-lang
CVE-2017-17405
Ruby-lang Ruby vulnerability
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
Ruby, Debian Linux, Enterprise Linux Desktop, Enterprise Linux Server, Enterprise Linux Server Aus, Enterprise Linux Server Eus, Enterprise Linux Server Tus, Enterprise Linux Workstation. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/ · Vendor Advisory
- www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/ · Patch
- www.securityfocus.com/bid/102204 · Third Party Advisory
- www.securitytracker.com/id/1042004 · Third Party Advisory
- access.redhat.com/errata/RHSA-2018:0378 · Third Party Advisory
- access.redhat.com/errata/RHSA-2018:0583 · Third Party Advisory
- access.redhat.com/errata/RHSA-2018:0584 · Third Party Advisory
- access.redhat.com/errata/RHSA-2018:0585 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2017-17405
- cve.org/CVERecord?id=CVE-2017-17405
More vulnerabilities in Ruby-lang products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.