{"id":"CVE-2017-17405","state":"PUBLISHED","title":"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 loca","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.","publishedAt":"2017-12-15T09:00:00.000Z","updatedAt":"2024-08-05T20:51:31.364Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://access.redhat.com/errata/RHSA-2018:0585","https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html","https://access.redhat.com/errata/RHSA-2018:0378","http://www.securityfocus.com/bid/102204","http://www.securitytracker.com/id/1042004","https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/","https://www.exploit-db.com/exploits/43381/","https://access.redhat.com/errata/RHSA-2018:0584","https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/","https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","https://access.redhat.com/errata/RHSA-2018:0583","https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html","https://www.debian.org/security/2018/dsa-4259","https://access.redhat.com/errata/RHSA-2019:2806"],"weaknesses":[],"ingestedAt":"2026-10-29T19:43:28.887Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2017/17xxx/CVE-2017-17405.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2017-17405","state":"PUBLISHED","datePublished":"2017-12-15T09:00:00.000Z","dateUpdated":"2024-08-05T20:51:31.364Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2017-12-05T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:0585","name":"RHSA-2018:0585","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html","name":"[debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0378","name":"RHSA-2018:0378","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/102204","name":"102204","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securitytracker.com/id/1042004","name":"1042004","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.exploit-db.com/exploits/43381/","name":"43381","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0584","name":"RHSA-2018:0584","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","name":"[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0583","name":"RHSA-2018:0583","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html","name":"[debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2018/dsa-4259","name":"DSA-4259","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2806","name":"RHSA-2019:2806","tags":["vendor-advisory","x_refsource_REDHAT"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2019-09-19T09:06:11.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2017-12-15T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2017-17405","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"RHSA-2018:0585","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2018:0585"},{"name":"[debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html"},{"name":"RHSA-2018:0378","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2018:0378"},{"name":"102204","refsource":"BID","url":"http://www.securityfocus.com/bid/102204"},{"name":"1042004","refsource":"SECTRACK","url":"http://www.securitytracker.com/id/1042004"},{"name":"https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/","refsource":"CONFIRM","url":"https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/"},{"name":"43381","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/43381/"},{"name":"RHSA-2018:0584","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2018:0584"},{"name":"https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/","refsource":"CONFIRM","url":"https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/"},{"name":"[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html"},{"name":"RHSA-2018:0583","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2018:0583"},{"name":"[debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html"},{"name":"DSA-4259","refsource":"DEBIAN","url":"https://www.debian.org/security/2018/dsa-4259"},{"name":"RHSA-2019:2806","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:2806"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://access.redhat.com/errata/RHSA-2018:0585","name":"RHSA-2018:0585","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html","name":"[debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0378","name":"RHSA-2018:0378","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.securityfocus.com/bid/102204","name":"102204","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.securitytracker.com/id/1042004","name":"1042004","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.exploit-db.com/exploits/43381/","name":"43381","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0584","name":"RHSA-2018:0584","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","name":"[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0583","name":"RHSA-2018:0583","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html","name":"[debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.debian.org/security/2018/dsa-4259","name":"DSA-4259","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2806","name":"RHSA-2019:2806","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T20:51:31.364Z"}}]}}}