Ruby: Command injection — GLSA 201802-05

A vulnerability has been found in Ruby which may allow for arbitrary command execution.

Affected Packages

dev-lang/ruby on all architectures
Affected versions < 2.2.9
Unaffected versions >= 2.2.9

Background

Ruby is an interpreted object-oriented programming language. The elaborate standard library includes an HTTP server (“WEBRick”) and a class for XML parsing (“REXML”).

Description

A command injection flaw was discovered in Net::FTP which impacts Ruby.

Impact

A remote attacker, by enticing a user to download and open a crafted file from a malicious FTP server, could execute arbitrary commands with the privileges of the process.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-lang/ruby-2.2.9:2.2"
 

References

Release Date
February 20, 2018

Latest Revision
February 20, 2018: 1

Severity
normal

Exploitable
remote

Bugzilla entries