---
title: "CVE-2017-17405\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2017-17405?format=md
keywords: index, follow
---

# CVE-2017-17405

Publication date 15 December 2017

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**8.8 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2017-17405?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| ruby1.9.1 | 17.10 artful | Not in release |
| 17.04 zesty | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 1.9.3.484-2ubuntu1.6 |
| ruby2.0 | 17.10 artful | Not in release |
| 17.04 zesty | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 2.0.0.484-1ubuntu2.5 |
| ruby2.3 | 17.10 artful | Fixed 2.3.3-1ubuntu1.1 |
| 17.04 zesty | Fixed 2.3.3-1ubuntu0.3 |
| 16.04 LTS xenial | Fixed 2.3.1-2~16.04.4 |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.8 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 8.8 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17405)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-17405)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2017-17405)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2017-17405)

### Related Ubuntu Security Notices (USN)

+ [USN-3515-1](https://usn.ubuntu.com/USN-3515-1)
+ Ruby vulnerability
+ 4 January 2018

### Other references

* <https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/>
* <https://github.com/ruby/ruby/commit/6d3f72e5be2312be312f2acbf3465b05293c1431>
* <https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/>
* <https://www.cve.org/CVERecord?id=CVE-2017-17405>
