CVE-2015-9097
MEDIUM 6.1CVSS 3.0Mail Gem CRLF Injection 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.
- Published
- 12 Jun 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-93
- Also known as
- GHSA-q86f-fmqf-qrf6
- Sources
- NVDJSONOSV GHSA-q86f-fmqf-qrf6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mail_project | mailcpe:2.3:a:mail_project:mail:*:*:*:*:*:ruby:*:* |
<= 2.5.4 | |
| OSV | RubyGems | < 2.5.5 | 2.5.5 |
References
- http://openwall.com/lists/oss-security/2015/12/11/3 · Mailing List, Third Party Advisory, WEB
- http://www.mbsd.jp/Whitepaper/smtpi.pdf · Third Party Advisory, WEB
- https://github.com/mikel/mail/commit/72befdc4dab3e6e288ce226a7da2aa474cf5be83 · Exploit, Third Party Advisory, WEB
- https://github.com/mikel/mail/pull/1097 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/rubysec/ruby-advisory-db/issues/215 · Issue Tracking, Third Party Advisory, WEB
- https://hackerone.com/reports/137631 · Issue Tracking, Third Party Advisory, WEB
- https://rubysec.com/advisories/mail-OSVDB-131677 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2015-9097 · ADVISORY
- https://github.com/advisories/GHSA-q86f-fmqf-qrf6 · ADVISORY
- https://github.com/mikel/mail · PACKAGE
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 12 Jun 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)