CVE-2015-9097
Mail Project Mail vulnerability
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.
Affected products
Mail. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mail Project Mail runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- rubysec.com/advisories/mail-OSVDB-131677 · Vendor Advisory
- openwall.com/lists/oss-security/2015/12/11/3 · Third Party Advisory
- www.mbsd.jp/Whitepaper/smtpi.pdf · Third Party Advisory
- github.com/mikel/mail/commit/72befdc4dab3e6e288ce226a7da2aa474cf5be83 · Exploit
- github.com/mikel/mail/pull/1097 · Third Party Advisory
- github.com/rubysec/ruby-advisory-db/issues/215 · Third Party Advisory
- hackerone.com/reports/137631 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2015-9097
- cve.org/CVERecord?id=CVE-2015-9097
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.