CVE-2017-17405
HIGH8.8EPSS 88.6%ruby2.3 - security update
Published: 12/24/2017Modified: 12/3/2025
Also known as:ALPINE-CVE-2017-17405
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.
Affected packages (4)
- Alpine/rubyfrom 0, < 2.4.3-r0
- Debian/ruby1.8from 0, < 1.8.7.358-7.1+deb7u5
- Debian/ruby1.9.1from 0, < 1.9.3.194-8.1+deb7u7
- Debian/ruby2.3from 0, < 2.3.3-1+deb9u3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |