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.
CVE-2017-17405
Score elevated to 9.0 because EPSS predicts 89% probability of exploitation within the next 30 days (top 0.5% of all CVEs). NVD baseline CVSS 8.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 74%
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 9.0(high)
- EPSS
- 99.4%
- KEV
- Not listed
Published
December 15, 2017
Last Modified
May 13, 2026
Advisory Details (10)
Auto-updated May 22, 2026[SECURITY] [DLA 1421-1] ruby2.1 security update
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html[SECURITY] [DLA 1221-1] ruby1.9.1 security update
https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html[SECURITY] [DLA 1222-1] ruby1.8 security update
https://lists.debian.org/debian-lts-announce/2017/12/msg00024.htmlAffected: Red Hat Enterprise Linux 7.3 Advanced Update Support, Red Hat Enterprise Linux 7.3 Telco Extended Update Support, and Red Hat
https://access.redhat.com/errata/RHSA-2019:2806Affected: Red Hat Enterprise Linux 7.
https://access.redhat.com/errata/RHSA-2018:0378Patch Availability(6)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | ruby2.3 (2.3.3-1ubuntu1.1) @ artful | 2026-05-22 | ubuntu |
| redhat | ruby-0:2.0.0.648-30.el7_3 | 2019-09-19 | redhat |
| redhat | rh-ruby23-ruby-0:2.3.6-67.el7 | 2018-03-26 | redhat |
| redhat | rh-ruby22-ruby-0:2.2.9-19.el7 | 2018-03-26 | redhat |
| redhat | rh-ruby24-ruby-0:2.4.3-90.el7 | 2018-03-26 | redhat |
| redhat | ruby-0:2.0.0.648-33.el7_4 | 2018-02-28 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
All Vendor Advisories
(6)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Red HatRHSA-2018:0378IMPORTANT2017-12-14
RHSA-2018:0378 — Important
- Red HatRHSA-2018:0583IMPORTANT2017-12-14
RHSA-2018:0583 — Important
- Red HatRHSA-2018:0584IMPORTANT2017-12-14
RHSA-2018:0584 — Important
- Red HatRHSA-2018:0585IMPORTANT2017-12-14
RHSA-2018:0585 — Important
- Red HatRHSA-2019:2806IMPORTANT2017-12-14
RHSA-2019:2806 — Important
- UbuntuUSN-3515-1MEDIUM
Ruby vulnerability
Data Freshness Timeline
(refreshed 5× in last 7d / 21× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 20:35 UTCOSV refresh
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:15 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 10:57 UTCOSV refresh
Show 16 moreShow fewer
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 07:13 UTCEG score recompute
- 2026-05-22 07:13 UTCVendor advisory
- 2026-05-22 07:12 UTCGHSA enrichment
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
Publicly available exploits
(1 reference)Working exploit code is in the public domain (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-43381First seen Dec 2, 2017
Ruby < 2.2.8 / < 2.3.5 / < 2.4.2 / < 2.5.0-preview1 - 'NET::Ftp' Command Injection
Open source ↗
Frequently asked(5)
What is CVE-2017-17405?
When was CVE-2017-17405 disclosed?
Is CVE-2017-17405 actively exploited?
What is the CVSS score of CVE-2017-17405?
How do I remediate CVE-2017-17405?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2017-17405
Is Your Infrastructure Affected by CVE-2017-17405?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.