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.
https://hackerone.com/reports/137631
https://github.com/rubysec/ruby-advisory-db/issues/215
https://github.com/mikel/mail/pull/1097
http://www.mbsd.jp/Whitepaper/smtpi.pdf
http://openwall.com/lists/oss-security/2015/12/11/3
https://rubysec.com/advisories/mail-OSVDB-131677
Source: Mitre, NVD
Published: 2017-06-12
Updated: 2026-05-13
Base Score: 4.3
Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N
Severity: Medium
Base Score: 6.1
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS: 0.00881