{"id":"MGASA-2017-0486","summary":"Updated ruby packages fix security vulnerabilities","details":"Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get,\ngetbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use\nKernel#open to open a local file. If the localfile argument starts with\nthe \"|\" pipe character, the command following the pipe character is\nexecuted. The default value of localfile is File.basename(remotefile),\nso malicious FTP servers could cause arbitrary command execution\n(CVE-2017-17405).\n\nThe lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses\nKernel#open, which might allow Command Injection attacks, as\ndemonstrated by a Resolv::Hosts::new argument beginning with a '|'\ncharacter (CVE-2017-17790).\n","modified":"2026-04-16T06:24:02.677244831Z","published":"2017-12-31T15:51:06Z","upstream":["CVE-2017-17405","CVE-2017-17790"],"references":[{"type":"ADVISORY","url":"https://advisories.mageia.org/MGASA-2017-0486.html"},{"type":"REPORT","url":"https://bugs.mageia.org/show_bug.cgi?id=22203"},{"type":"WEB","url":"https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/"}],"affected":[{"package":{"name":"ruby","ecosystem":"Mageia:5","purl":"pkg:rpm/mageia/ruby?arch=source&distro=mageia-5"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0.p648-1.6.mga5"}]}],"ecosystem_specific":{"section":"core"},"database_specific":{"source":"https://advisories.mageia.org/MGASA-2017-0486.json"}},{"package":{"name":"ruby","ecosystem":"Mageia:6","purl":"pkg:rpm/mageia/ruby?arch=source&distro=mageia-6"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.8-1.1.mga6"}]}],"ecosystem_specific":{"section":"core"},"database_specific":{"source":"https://advisories.mageia.org/MGASA-2017-0486.json"}}],"schema_version":"1.7.5","credits":[{"name":"Mageia","contact":["https://wiki.mageia.org/en/Packages_Security_Team"],"type":"COORDINATOR"}]}