Skip to content

Commit

Permalink
Add CVE-2015-9096 for Ruby Net::SMTP command injection.
Browse files Browse the repository at this point in the history
Migrate Mail OSVDB-131677 to CVE-2015-9097.
  • Loading branch information
jeremy committed Jun 12, 2017
1 parent bf6250d commit 531a291
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 23 deletions.
25 changes: 25 additions & 0 deletions gems/mail/CVE-2015-9097.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
gem: mail
cve: CVE-2015-9097
url: https://hackerone.com/reports/137631
title: SMTP command injection
date: 2015-12-09
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.
patched_versions:
- ">= 2.5.5"
related:
url:
- http://www.mbsd.jp/Whitepaper/smtpi.pdf
- https://github.com/mikel/mail/pull/1097
23 changes: 0 additions & 23 deletions gems/mail/OSVDB-131677.yml

This file was deleted.

19 changes: 19 additions & 0 deletions rubies/ruby/CVE-2015-9096.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
engine: ruby
cve: CVE-2015-9096
url: https://hackerone.com/reports/137631
title: SMTP command injection
date: 2015-12-09
description: |
Net::SMTP 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.
Applications that validate email address format are not affected by this
vulnerability.
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 without any modification.
patched_versions:
- ">= 2.4.0"

0 comments on commit 531a291

Please sign in to comment.