MGASA-2017-0486

Source
https://advisories.mageia.org/MGASA-2017-0486.html
Import Source
https://advisories.mageia.org/MGASA-2017-0486.json
JSON Data
https://api.osv.dev/v1/vulns/MGASA-2017-0486
Related
Published
2017-12-31T15:51:06Z
Modified
2017-12-31T15:24:30Z
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
Credits

Affected packages

Mageia:5 / ruby

Package

Name
ruby
Purl
pkg:rpm/mageia/ruby?distro=mageia-5

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.0.p648-1.6.mga5

Ecosystem specific

{
    "section": "core"
}

Mageia:6 / ruby

Package

Name
ruby
Purl
pkg:rpm/mageia/ruby?distro=mageia-6

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.8-1.1.mga6

Ecosystem specific

{
    "section": "core"
}