SMTP command injection

Metadata

medium
4.3
mail
CVE-2015-9097
mbsd.jp, github.com, hackerone.com
2015-12-09
2017-07-05 19:37
CVE-2015-9097 ruby-mail
CVE-2015-9097
2017-06-16 19:23
2017-06-13 18:03
2017-06-12 19:03
2017-04-01 19:10
2017-01-05 20:14

Description

Because Mail does not disallow CRLF in email addresses, an attacker can
inject SMTP commands in specially crafted email addresses passed to
RCPT TO and MAIL FROM.

Not affected by this vulnerability:
* Ruby 2.4.0+ with a fix for CVE-2015-9096.
* Applications that do not use SMTP delivery.
* Applications that validate email addresses to not include CRLF.

The injection attack is described in Terada, Takeshi. "SMTP Injection via
Recipient Email Addresses." 2015. The attacks described in the paper
(Terada, p. 4) can be applied to the library without any modification.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
mail >= 2.5.5 None