Live threats

All CVEs / Ruby-lang

CVE-2017-17405Ruby-lang Ruby

High 8.8 No auth neededHigh EPSS

Priority
75
CVSS 3.0
8.8
EPSS
73.8%
probability of exploitation in 30 days · percentile 100
Auth required
No
Published
Dec 15, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≥ 2.2 ≤ 2.2.8
ruby-langruby≥ 2.3 ≤ 2.3.5
ruby-langruby≥ 2.4 ≤ 2.4.2
ruby-langruby2.5.0
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

Official sources

References

Links published by the sources. Open them with care.