CVE-2017-17405: Debian Linux

High severity, CVSS 8.8. EPSS: 73.8% chance of exploitation in the next 30 days.

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 products

  • Debian Debian Linux: version 7.0 only; version 8.0 only; version 9.0 only
  • Red Hat Enterprise Linux Desktop: version 7.0 only
  • Red Hat Enterprise Linux Server: version 7.0 only
  • Red Hat Enterprise Linux Server Aus: version 7.4 only; version 7.6 only
  • Red Hat Enterprise Linux Server Eus: version 7.4 only; version 7.5 only; version 7.6 only
  • Red Hat Enterprise Linux Server Tus: version 7.4 only; version 7.6 only
  • Red Hat Enterprise Linux Workstation: version 7.0 only
  • Ruby-Lang Ruby: from 2.2, up to and including 2.2.8; from 2.3, up to and including 2.3.5; from 2.4, up to and including 2.4.2; version 2.5.0 only

Published 2017-12-15. Last modified 2026-06-17.