Description
The deliver function in the sendmail delivery agent (lib/mail/network/delivery_methods/sendmail.rb) in Ruby Mail gem 2.2.14 and earlier allows remote attackers to execute arbitrary commands via shell metacharacters in an e-mail address.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | < 2.2.15 | 2.2.15 | GHSA-cpjc-p7fc-j9xh |
References
- ADV-2011-0233 vdb-entry
- http://groups.google.com/group/mail-ruby/browse_thread/thread/e93bbd05706478dd?pli=1
- ruby-mail-deliver-command-execution(65010) vdb-entry
- 46021 vdb-entry
- https://github.com/mikel/mail/raw/master/patches/20110126_sendmail.patch
- 43077 third-party-advisory
- 70667 vdb-entry