CVE-2017-17405

8.8 HIGH
Published: December 15, 2017 Modified: May 13, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://www.securityfocus.com/bid/102204
Source: cve@mitre.org
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042004
Source: cve@mitre.org
Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2018:0378
Source: cve@mitre.org
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583
Source: cve@mitre.org
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0584
Source: cve@mitre.org
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585
Source: cve@mitre.org
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
Source: cve@mitre.org
Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html
Source: cve@mitre.org
Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Source: cve@mitre.org
Mailing List Third Party Advisory
https://www.debian.org/security/2018/dsa-4259
Source: cve@mitre.org
Third Party Advisory
https://www.exploit-db.com/exploits/43381/
Source: cve@mitre.org
Exploit Third Party Advisory VDB Entry
https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/
Source: cve@mitre.org
Patch Release Notes Vendor Advisory
http://www.securityfocus.com/bid/102204
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042004
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2018:0378
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0584
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2806
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://www.debian.org/security/2018/dsa-4259
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.exploit-db.com/exploits/43381/
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Release Notes Vendor Advisory

28 reference(s) from NVD

Quick Stats

CVSS v3 Score
8.8 / 10.0
EPSS (Exploit Probability)
88.6%
100th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

ruby-lang debian redhat