CVE-2017-17405
Reported by mitre · Published December 15, 2017
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby | Alpine | 2.4.3-r0, 2.3.6-r0, 2.2.9-r0 |
| ruby2.3 | Ubuntu:16.04:LTS | 2.3.1-2~16.04.4 |
| ruby | ruby-lang | 2.4.2, 2.3.5, 2.2.8 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | ruby | 0, 0, 0 |
| n/a | n/a | * |
Timeline
- Dec 15, 2017 CVE Published
- Dec 19, 2017 PoC Published (2 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (7 in total, the first dated here)
- Mar 6, 2026 Security Advisory (8 in total, the first dated here)
- Oct 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-17405
vulnetix vdb fixes CVE-2017-17405
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-17405/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2018:0585 vendor-advisoryx_refsource_REDHAT
- [debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security update mailing-listx_refsource_MLIST
- RHSA-2018:0378 vendor-advisoryx_refsource_REDHAT
- 102204 vdb-entryx_refsource_BID
- 1042004 vdb-entryx_refsource_SECTRACK
- x_refsource_CONFIRM
- 43381 exploitx_refsource_EXPLOIT-DB
- RHSA-2018:0584 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update mailing-listx_refsource_MLIST
- RHSA-2018:0583 vendor-advisoryx_refsource_REDHAT
- [debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security update mailing-listx_refsource_MLIST
- DSA-4259 vendor-advisoryx_refsource_DEBIAN
- RHSA-2019:2806 vendor-advisoryx_refsource_REDHAT