Bug 1477540 (CVE-2017-9801)

Summary: CVE-2017-9801 apache-commons-email: SMTP header injection vulnerabilty
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: java-sig-commits, SpikeFedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: apache-commons-email 1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:19:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1477541    
Bug Blocks:    

Description Adam Mariš 2017-08-02 11:12:24 UTC
When a call-site passes a subject for an email that contains line-breaks, the caller can add arbitrary SMTP headers.

This vulnerability can be mitigated for older versions of Commons Email by stripping line-breaks from the subject before passing it to the setSubject(String) method.

References:

http://seclists.org/oss-sec/2017/q3/231

Comment 1 Adam Mariš 2017-08-02 11:12:52 UTC
Created apache-commons-email tracking bugs for this issue:

Affects: fedora-all [bug 1477541]

Comment 2 Product Security DevOps Team 2019-06-08 03:19:48 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.