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.
OS Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
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
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 99%
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
zesty
dne
xenial
dne
trusty
Fixed 1.9.3.484-2ubuntu1.6
released
ruby2.0
artful
dne
zesty
dne
xenial
dne
trusty
Fixed 2.0.0.484-1ubuntu2.5
released
ruby2.3
artful
Fixed 2.3.3-1ubuntu1.1
released
zesty
Fixed 2.3.3-1ubuntu0.3
released
xenial
Fixed 2.3.1-2~16.04.4
released
trusty
dne
References