CVE-2017-17405

EUVD-2017-8570
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.
OS Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 99%
Affected Products (NVD)
VendorProductVersion
ruby-langruby
2.2 ≤
𝑥
≤ 2.2.8
ruby-langruby
2.3 ≤
𝑥
≤ 2.3.5
ruby-langruby
2.4 ≤
𝑥
≤ 2.4.2
ruby-langruby
2.5.0:preview1
debiandebian_linux
7.0
debiandebian_linux
8.0
debiandebian_linux
9.0
redhatenterprise_linux_desktop
7.0
redhatenterprise_linux_server
7.0
redhatenterprise_linux_server_aus
7.4
redhatenterprise_linux_server_aus
7.6
redhatenterprise_linux_server_eus
7.4
redhatenterprise_linux_server_eus
7.5
redhatenterprise_linux_server_eus
7.6
redhatenterprise_linux_server_tus
7.4
redhatenterprise_linux_server_tus
7.6
redhatenterprise_linux_workstation
7.0
𝑥
= Vulnerable software versions
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby1.9.1
artful
dne
trusty
Fixed 1.9.3.484-2ubuntu1.6
released
xenial
dne
zesty
dne
ruby2.0
artful
dne
trusty
Fixed 2.0.0.484-1ubuntu2.5
released
xenial
dne
zesty
dne
ruby2.3
artful
Fixed 2.3.3-1ubuntu1.1
released
trusty
dne
xenial
Fixed 2.3.1-2~16.04.4
released
zesty
Fixed 2.3.3-1ubuntu0.3
released
References