CVE-2017-17405
HIGH severity · CVSS 8.8 · OS command injection
8.8CVSS HIGH
Summary
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.
Impact & exploitability
Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionRequired
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
Exploit probability (EPSS)89%
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products we track (1)
Recommendation
Apply the vendor fix promptly. Open any affected product above for its exact safe version.
Additional information
- NVD record
- http://www.securityfocus.com/bid/102204Advisory
- http://www.securitytracker.com/id/1042004Advisory
- https://access.redhat.com/errata/RHSA-2018:0378Advisory
- https://access.redhat.com/errata/RHSA-2018:0583Advisory
- https://access.redhat.com/errata/RHSA-2018:0584Advisory
- https://access.redhat.com/errata/RHSA-2018:0585Advisory
- https://access.redhat.com/errata/RHSA-2019:2806
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.htmlAdvisory