The mail gem before 2.5.5 for Ruby (aka A Really Ruby Mail Library) is vulnerable to SMTP command injection via CRLF sequences in a RCPT TO or MAIL FROM command, as demonstrated by CRLF sequences immediately before and after a DATA substring.
The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
Link | Tags |
---|---|
https://github.com/mikel/mail/pull/1097 | third party advisory issue tracking |
https://hackerone.com/reports/137631 | third party advisory issue tracking |
https://github.com/mikel/mail/commit/72befdc4dab3e6e288ce226a7da2aa474cf5be83 | third party advisory exploit |
http://openwall.com/lists/oss-security/2015/12/11/3 | third party advisory mailing list |
https://rubysec.com/advisories/mail-OSVDB-131677 | vendor advisory issue tracking |
https://github.com/rubysec/ruby-advisory-db/issues/215 | third party advisory issue tracking |
http://www.mbsd.jp/Whitepaper/smtpi.pdf | third party advisory |