8.8
HIGH
CVE-2017-17405
Apache Ruby Net Command Injection Vulnerability
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.

INFO

Published Date :

Dec. 15, 2017, 9:29 a.m.

Last Modified :

Nov. 21, 2024, 3:17 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2017-17405 has a 19 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2017-17405 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Redhat enterprise_linux_desktop
2 Redhat enterprise_linux_server
3 Redhat enterprise_linux_workstation
4 Redhat enterprise_linux_server_aus
5 Redhat enterprise_linux_server_eus
6 Redhat enterprise_linux_server_tus
1 Ruby-lang ruby
1 Debian debian_linux
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2017-17405.

URL Resource
http://www.securityfocus.com/bid/102204 Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042004 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2018:0378 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0584 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2806
https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html Mailing List Third Party Advisory
https://www.debian.org/security/2018/dsa-4259 Third 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/102204 Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042004 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2018:0378 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0584 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2806
https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html Mailing List Third Party Advisory
https://www.debian.org/security/2018/dsa-4259 Third 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

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

基于Docker-Compose的预构建漏洞环境设计源码 Docker-Compose 漏洞环境 Java Python Shell 该项目是一套基于Docker-Compose的预构建漏洞环境设计源码,涵盖了1684个文件,其中包括405个PNG图像文件、319个Markdown文档、218个YAML配置文件、68个Java源文件、67个Python脚本、62个Shell脚本、53个XML文件、34个PHP文件以及多个Dockerfile。该环境集成了Java, Python, Shell, PHP, HTML, JavaScript, CSS, Ruby等多种编程语言,旨在为安全研究提供易用的漏洞测试平台。

Updated: 4 months ago
0 stars 0 fork 0 watcher
Born at : Nov. 29, 2024, 4:05 a.m. This repo has been linked 127 different CVEs too.

A curated collection of Proof of Concept (PoC) tools, scripts, and techniques designed for red team operations, penetration testing, and cybersecurity research. This repository focuses on providing practical resources for exploring vulnerabilities

attack cybersecurity exp hw penetration-testing poc red-team security-tools vulnerability-poc

Updated: 2 months, 1 week ago
5 stars 2 fork 2 watcher
Born at : Nov. 17, 2024, 11:53 a.m. This repo has been linked 414 different CVEs too.

Web CTF CheatSheet 🐈

JavaScript

Updated: 4 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Nov. 11, 2024, 8:48 p.m. This repo has been linked 23 different CVEs too.

这是一个每天同步Vulnerability-Wiki中docs-base中内容的项目

HTML

Updated: 2 months, 2 weeks ago
1 stars 0 fork 0 watcher
Born at : Sept. 20, 2024, 3:27 a.m. This repo has been linked 214 different CVEs too.

None

Updated: 3 months, 1 week ago
3 stars 1 fork 1 watcher
Born at : Jan. 26, 2024, 10:07 a.m. This repo has been linked 161 different CVEs too.

None

Updated: 1 year, 5 months ago
0 stars 0 fork 0 watcher
Born at : Oct. 12, 2023, 10:59 a.m. This repo has been linked 2 different CVEs too.

春秋云境靶场解题攻略

Updated: 6 months, 4 weeks ago
7 stars 0 fork 0 watcher
Born at : July 28, 2023, 8:14 a.m. This repo has been linked 125 different CVEs too.

None

Updated: 2 years, 2 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 11, 2023, 1:21 p.m. This repo has been linked 1044 different CVEs too.

None

Python

Updated: 2 months, 2 weeks ago
7 stars 0 fork 0 watcher
Born at : Dec. 5, 2022, 2:29 a.m. This repo has been linked 25 different CVEs too.

一个Vulhub漏洞复现知识库

vulnerability exploit

Updated: 6 months, 4 weeks ago
448 stars 87 fork 87 watcher
Born at : March 3, 2022, 8:38 a.m. This repo has been linked 171 different CVEs too.

一个漏洞POC知识库 目前数量 1000+

poc

Updated: 1 month, 4 weeks ago
3816 stars 755 fork 755 watcher
Born at : Feb. 20, 2022, 6:43 a.m. This repo has been linked 418 different CVEs too.

安全类各家文库大乱斗

HTML CSS JavaScript Go Python Shell C

Updated: 1 month, 4 weeks ago
1039 stars 257 fork 257 watcher
Born at : Feb. 15, 2022, 3:14 a.m. This repo has been linked 568 different CVEs too.

Web CTF CheatSheet 🐈

ctf cheatsheet capture-the-flag

PHP Classic ASP ASP.NET Python Ruby Batchfile PowerShell VBScript

Updated: 2 months, 3 weeks ago
22 stars 5 fork 5 watcher
Born at : July 17, 2021, 6:30 a.m. This repo has been linked 23 different CVEs too.

None

Updated: 3 months, 3 weeks ago
13 stars 4 fork 4 watcher
Born at : May 25, 2020, 7:51 a.m. This repo has been linked 1029 different CVEs too.

Some good-boy scripts I've made throughout my time learning aggressive infosec

Python Ruby PHP HTML Shell

Updated: 7 months, 3 weeks ago
8 stars 1 fork 1 watcher
Born at : April 12, 2020, 4:11 a.m. This repo has been linked 3 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2017-17405 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2017-17405 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/102204
    Added Reference http://www.securitytracker.com/id/1042004
    Added Reference https://access.redhat.com/errata/RHSA-2018:0378
    Added Reference https://access.redhat.com/errata/RHSA-2018:0583
    Added Reference https://access.redhat.com/errata/RHSA-2018:0584
    Added Reference https://access.redhat.com/errata/RHSA-2018:0585
    Added Reference https://access.redhat.com/errata/RHSA-2019:2806
    Added Reference https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html
    Added Reference https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html
    Added Reference https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
    Added Reference https://www.debian.org/security/2018/dsa-4259
    Added Reference https://www.exploit-db.com/exploits/43381/
    Added Reference https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
    Added Reference https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Sep. 19, 2019

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2019:2806 [No Types Assigned]
  • Modified Analysis by [email protected]

    Mar. 14, 2019

    Action Type Old Value New Value
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html No Types Assigned https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html Mailing List, Third Party Advisory
    Changed Reference Type https://www.debian.org/security/2018/dsa-4259 No Types Assigned https://www.debian.org/security/2018/dsa-4259 Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html No Types Assigned https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html Mailing List, Third Party Advisory
    Changed Reference Type http://www.securitytracker.com/id/1042004 No Types Assigned http://www.securitytracker.com/id/1042004 Third Party Advisory, VDB Entry
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:0585 No Types Assigned https://access.redhat.com/errata/RHSA-2018:0585 Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:0584 No Types Assigned https://access.redhat.com/errata/RHSA-2018:0584 Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:0378 No Types Assigned https://access.redhat.com/errata/RHSA-2018:0378 Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html No Types Assigned https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html Mailing List, Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:0583 No Types Assigned https://access.redhat.com/errata/RHSA-2018:0583 Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 31, 2018

    Action Type Old Value New Value
    Added Reference http://www.securitytracker.com/id/1042004 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 03, 2018

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2018/dsa-4259 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 15, 2018

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html [No Types Assigned]
  • CVE Modified by [email protected]

    Mar. 28, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:0585 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2018:0584 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2018:0583 [No Types Assigned]
  • CVE Modified by [email protected]

    Mar. 02, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:0378 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 04, 2018

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html [No Types Assigned]
    Added Reference https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html [No Types Assigned]
  • Initial Analysis by [email protected]

    Dec. 29, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:M/Au:N/C:C/I:C/A:C)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/ No Types Assigned https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/ Vendor Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/ No Types Assigned https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/ Patch, Release Notes, Vendor Advisory
    Changed Reference Type https://www.exploit-db.com/exploits/43381/ No Types Assigned https://www.exploit-db.com/exploits/43381/ Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://www.securityfocus.com/bid/102204 No Types Assigned http://www.securityfocus.com/bid/102204 Third Party Advisory, VDB Entry
    Added CWE CWE-78
    Added CPE Configuration OR *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.2 up to (including) 2.2.8 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.3 up to (including) 2.3.5 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* versions from (including) 2.4 up to (including) 2.4.2 *cpe:2.3:a:ruby-lang:ruby:2.5.0:preview1:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Dec. 27, 2017

    Action Type Old Value New Value
    Added Reference https://www.exploit-db.com/exploits/43381/ [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 20, 2017

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/102204 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2017-17405 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

87.08 }} 2.20%

score

0.99417

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability