MGASA-2017-0486
Dashboard / Vulnerabilities / MGASA-2017-0486
MGASA-2017-0486
Summary: Updated ruby packages fix security vulnerabilities
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 (CVE-2017-17405). The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a '|' character (CVE-2017-17790).
References: https://advisories.mageia.org/MGASA-2017-0486.html, https://bugs.mageia.org/show_bug.cgi?id=22203, https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
Affected packages
Package
Name: ruby
Purl: pkg:rpm/mageia/ruby?arch=source&distro=mageia-5
Affected ranges
Type: ECOSYSTEM
Events:
