CVE-2017-17405
Ruby before 2.4.3 allows Net::FTP command injection.
Does this matter?
EPSS puts the probability of exploitation in the next 30 days at 73.8%, higher than 99% of all known CVEs. Patch or mitigate before the next change window.
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.
- CVSS 3.0
- 8.8 HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 73.83% probability · 99th percentile
- Public exploits
- 1 in Exploit-DB · first 2 December 2017
- CISA KEV
- Not listed
- Weakness
- CWE-78
- Affected
- ruby-lang/ruby · debian/debian linux · redhat/enterprise linux desktop · redhat/enterprise linux server · redhat/enterprise linux server aus · redhat/enterprise linux server eus · redhat/enterprise linux server tus · redhat/enterprise linux workstation
- Source
- cve@mitre.org
EPSS moved from 70.4% on 21 September 2026 to 73.8% on 27 October 2026. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
References
- http://www.securityfocus.com/bid/102204Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1042004Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2018:0378Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0583Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0584Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0585Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2806
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2018/dsa-4259Third Party Advisory
- https://www.exploit-db.com/exploits/43381/Exploit, Third Party Advisory, VDB Entry
- https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/Vendor Advisory
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/Patch, Release Notes, Vendor Advisory
- http://www.securityfocus.com/bid/102204Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1042004Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2018:0378Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0583Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0584Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0585Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2806
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2018/dsa-4259Third Party Advisory
- https://www.exploit-db.com/exploits/43381/Exploit, Third Party Advisory, VDB Entry
- https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/Vendor Advisory
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/Patch, Release Notes, Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.