CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2017 · Ruby-lang

CVE-2017-17405
Ruby-lang Ruby vulnerability

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

Ruby, Debian Linux, Enterprise Linux Desktop, Enterprise Linux Server, Enterprise Linux Server Aus, Enterprise Linux Server Eus, Enterprise Linux Server Tus, Enterprise Linux Workstation. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Ruby-lang products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.