Bug 1293598 (CVE-2015-9097)

Summary: CVE-2015-9097 rubygem-mail: SMTP injection via recipient email addresses
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: anemec, bkearney, cbillett, ccoleman, cpelland, dajohnso, dclarizi, dkholia, dmcphers, gblomqui, gmccullo, gtanzill, hhorak, jfrey, jhardy, jialiu, joelsmith, jokerman, jorton, jprause, katello-bugs, kseifried, lmeyer, mmaslano, mmccomas, obarenbo, roliveri, ruby-maint, tomckay, vondruch, xlecauch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-mail 2.6.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 07:12:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1293599    
Bug Blocks: 1293629    

Description Adam Mariš 2015-12-22 10:43:15 UTC
It was found that versions of rubygem-mail prior to 2.6.0 are vulnerable to SMTP injection via recipient email addresses. Mail module does not validate nor sanitize given recipient addresses and does not impose a length limit on email addresses. An attacker can send long spam message via recipient address unless there is a limit on the application's side. This vulnerability affects only the applications that lack input validation.

Upstream patch:

https://github.com/mikel/mail/commit/72befdc4dab3e6e288ce226a7da2aa474cf5be83

CVE request:

http://www.openwall.com/lists/oss-security/2015/12/11/3

Note that, this patch might not be complete, since according to the author, the fault can also be on Net::SMTP's side.