Net::SMTP in Ruby before 2.4.0 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://www.debian.org/security/2017/dsa-3966 | vendor advisory |
https://hackerone.com/reports/137631 | third party advisory |
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html | mailing list |
https://github.com/rubysec/ruby-advisory-db/issues/215 | issue tracking third party advisory |
https://github.com/ruby/ruby/commit/0827a7e52ba3d957a634b063bf5a391239b9ffee | third party advisory patch |
http://www.mbsd.jp/Whitepaper/smtpi.pdf | third party advisory exploit |