CVE-2017-17405

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-17405
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-17405.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-17405
Downstream
Related
Published
2017-12-15T09:29:00Z
Modified
2025-05-30T18:00:04Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/ruby/ruby