CVE-2017-17405

ruby: Command injection vulnerability in Net::FTP

Published Dec 15, 2017 CVSS 3.0 · 8.8 High EPSS 73.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1221-1 ruby1.9.1 security update
Debian DLA Debian DLA DLA-1222-1 ruby1.8 security update
Debian DLA Debian DLA DLA-1421-1 ruby2.1 security update
Debian DSA Debian DSA DSA-4259-1 ruby2.3 security update
Ubuntu USN Ubuntu USN USN-3515-1 Ruby vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.86802}

epss

{'score': 0.8688}

Type Values Removed Values Added
Metrics epss

{'score': 0.88289}

epss

{'score': 0.86802}