CVE-2017-17405

UnknownEPSS 73.93%

Last modified

CVE-2017-17405 is a vulnerability of currently unknown severity. 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. EPSS estimates a 73.93% chance of exploitation in the next 30 days.

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.

Metrics

EPSS Probability
73.93%

99.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
Ruby-LangRuby>= 2.2, <= 2.2.8
Ruby-LangRuby>= 2.3, <= 2.3.5
Ruby-LangRuby>= 2.4, <= 2.4.2
Ruby-LangRuby2.5.0Preview1
DebianDebian Linux7.0
DebianDebian Linux8.0
DebianDebian Linux9.0
RedhatEnterprise Linux Desktop7.0
RedhatEnterprise Linux Server7.0
RedhatEnterprise Linux Server Aus7.4
RedhatEnterprise Linux Server Aus7.6
RedhatEnterprise Linux Server Eus7.4
RedhatEnterprise Linux Server Eus7.5
RedhatEnterprise Linux Server Eus7.6
RedhatEnterprise Linux Server Tus7.4
RedhatEnterprise Linux Server Tus7.6
RedhatEnterprise Linux Workstation7.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2017-17405?
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 severe is CVE-2017-17405?
Severity scoring for CVE-2017-17405 is pending analysis. The EPSS model estimates a 73.93% probability of exploitation in the next 30 days.
How do I fix CVE-2017-17405?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2017-17405?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST