A vulnerability has been reported in the Mail gem for Ruby, which can be exploited by malicious people to compromise a vulnerable system.
Input passed via an email from address is not properly sanitised in the "deliver()" function (lib/mail/network/delivery_methods/sendmail.rb) before being used as a command line argument. This can be exploited to inject arbitrary shell commands.
Successful exploitation requires the gem to use sendmail for mail delivery.
The vulnerability is reported versions prior to 2.2.15.
Solution: Update to version 2.2.15.
Provided and/or discovered by: The vendor credits Andy Lindeman and Steven Lorek.
Original Advisory: http://groups.google.com/group/mail-ruby/browse_thread/thread/e93bbd05706478dd?pli=1
Do you have additional information related to this advisory?
Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this
information to firstname.lastname@example.org
Subject: Ruby Mail Gem Email Address Shell Command Injection Vulnerability
No posts yet
You must be logged in to post a comment.
Secunia Customer Login
Not a customer already?
Learn more about how our market leading Vulnerability Management solutions can help you manage risk and ensure compliance.