CVE-2017-17405

High

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductRuby
PublishedDec 15, 2017
First seenDec 15, 2017

How to fix

Affected products

ProductAffected versionsFixed in
ruby-lang ruby2.2 ≤ v ≤ 2.2.8, 2.3 ≤ v ≤ 2.3.5, 2.4 ≤ v ≤ 2.4.2, 2.5.0—
debian debian_linux7.0, 8.0, 9.0—
redhat enterprise_linux_desktop7.0—
redhat enterprise_linux_server7.0—
redhat enterprise_linux_server_aus7.4, 7.6—
redhat enterprise_linux_server_eus7.4, 7.5, 7.6—
redhat enterprise_linux_server_tus7.4, 7.6—
redhat enterprise_linux_workstation7.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.