Skip to main content
← All vulnerabilities
CVE-2017-17405

Ruby before 2.4.3 allows Net::FTP command injection.

Published
Last modified
published
Not listed in CISA KEV
1 on Exploit-DB

Summary

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.

Timeline

  1. Public exploit on Exploit-DB

    EDB-43381

  2. CVE published
  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 15

access.redhat.com

lists.debian.org

securityfocus.com

securitytracker.com

ruby-lang.org

Exploit-DB

debian.org