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.
Published:Dec 14, 2017
Last Modified:Apr 20, 2025
EPS:Dec 15, 2017
EPSS Score:0.87989
CVSS Score:8.8
Affected Products
Vendor
Product
Action
Vendor
Debian
Product
Debian Linux
Debian
Debian Linux
Vendor
Redhat
Product
Enterprise Linux
Redhat
Enterprise Linux
Vendor
Redhat
Product
Enterprise Linux Desktop
Redhat
Enterprise Linux Desktop
Vendor
Redhat
Product
Enterprise Linux Server
Redhat
Enterprise Linux Server
Vendor
Redhat
Product
Enterprise Linux Server Aus
Redhat
Enterprise Linux Server Aus
Vendor
Redhat
Product
Enterprise Linux Server Eus
Redhat
Enterprise Linux Server Eus
Vendor
Redhat
Product
Enterprise Linux Server Tus
Redhat
Enterprise Linux Server Tus
Vendor
Redhat
Product
Enterprise Linux Workstation
Redhat
Enterprise Linux Workstation
Vendor
Redhat
Product
Rhel Aus
Redhat
Rhel Aus
Vendor
Redhat
Product
Rhel E4s
Redhat
Rhel E4s
Vendor
Redhat
Product
Rhel Software Collections
Redhat
Rhel Software Collections
Vendor
Redhat
Product
Rhel Tus
Redhat
Rhel Tus
Vendor
Ruby-lang
Product
Ruby
Ruby-lang
Ruby
Exploits
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
