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.
How to fix
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ruby-lang ruby | 2.2 ≤ v ≤ 2.2.8, 2.3 ≤ v ≤ 2.3.5, 2.4 ≤ v ≤ 2.4.2, 2.5.0 | — |
| debian debian_linux | 7.0, 8.0, 9.0 | — |
| redhat enterprise_linux_desktop | 7.0 | — |
| redhat enterprise_linux_server | 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 | — |
| redhat enterprise_linux_workstation | 7.0 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.