Back to search
CVE-2017-17405
Published: Dec 15, 2017
Modified: Aug 5, 2024
PUBLISHED
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.
| Vendor | Product | Versions |
|---|---|---|
n/a | n/a | affected n/a |
References
RHSA-2018:0585
vendor-advisory
x_refsource_REDHAT
[debian-lts-announce] 20171225 [SECURITY] [DLA 1222-1] ruby1.8 security update
mailing-list
x_refsource_MLIST
RHSA-2018:0378
vendor-advisory
x_refsource_REDHAT
102204
vdb-entry
x_refsource_BID
1042004
vdb-entry
x_refsource_SECTRACK
43381
exploit
x_refsource_EXPLOIT-DB
RHSA-2018:0584
vendor-advisory
x_refsource_REDHAT
https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/
x_refsource_CONFIRM
[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update
mailing-list
x_refsource_MLIST
RHSA-2018:0583
vendor-advisory
x_refsource_REDHAT
[debian-lts-announce] 20171225 [SECURITY] [DLA 1221-1] ruby1.9.1 security update
mailing-list
x_refsource_MLIST
DSA-4259
vendor-advisory
x_refsource_DEBIAN
RHSA-2019:2806
vendor-advisory
x_refsource_REDHAT
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now