CVE-2017-17405

high
Published 2017-12-15 · Modified 2026-05-13
CVSS v3
8.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v2
9.3
VIR risk
8.8

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.

Predictions

Exploit likelihood
92%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-17405.html

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debian7.0affected
debian debian8.0affected
debian debian9.0affected
redhat rhel7.0affected

Application impact

VendorProductVersionsFixed
ruby-langruby{"startIncluding":"2.2","endIncluding":"2.2.8"}
ruby-langruby2.5.0

References

CWEs

CWE-78

Verify integrity in audit chain (admin only). AS-IS.