CVE-2017-17405 in Debian Linux and 7 more products
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 i...
Affects 8 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 7.0 8.0 9.0 |
| Redhat | Enterprise Linux Desktop | 7.0 |
| Redhat | Enterprise Linux Server | 7.0 |
| Redhat | Enterprise Linux Workstation | 7.0 |
| Redhat | Enterprise Linux Server Aus | 7.4 7.6 |
| Redhat | Enterprise Linux Server Eus | 7.4 7.5 7.6 |
| Redhat | Enterprise Linux Server Tus | 7.4 7.6 |
| Ruby-Lang | Ruby | 2.5.0 ≥ 2.2, ≤ 2.2.8 ≥ 2.3, ≤ 2.3.5 ≥ 2.4, ≤ 2.4.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2017-17405 |
|---|---|
| BreachSpider ID | BS-2017-GLOBAL-228982-H |
| CVSS vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2017-12-15 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-78
CAPEC-88 OS Command Injection via CWE-78
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2017-17405 affects Ruby versions before 2.4.3, allowing Net::FTP command injection via the localfile argument in methods like get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile.
The vulnerability arises from the use of Kernel#open to open a local file. If the localfile argument starts with the '|' pipe character, the command following the pipe character is executed, potentially allowing arbitrary command execution.
Questions
What is CVE-2017-17405?
CVE-2017-17405 affects Ruby versions before 2.4.3, allowing Net::FTP command injection via the localfile argument in methods like get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile.
What is the CVSS score for CVE-2017-17405?
CVE-2017-17405 has CVSS 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 73.8%.
Is CVE-2017-17405 actively exploited?
Public exploit available for CVE-2017-17405. Exploitation risk elevated.
How do I remediate CVE-2017-17405?
Priority: IMMEDIATE. Advisory: https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
What systems are affected by CVE-2017-17405?
CVE-2017-17405 affects Debian Debian Linux; Redhat Enterprise Linux Desktop, Enterprise Linux Server, Enterprise Linux Workstation, Enterprise Linux Server Aus, Enterprise Linux Server Eus, Enterprise Linux Server Tus; Ruby-Lang Ruby.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.