Bug 1797595 (CVE-2020-7247)

Summary: CVE-2020-7247 opensmtpd: arbitrary commands execution in smtp_mailaddr in smtp_session.c via crafted SMTP session
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: denis
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-03 14:09:36 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: 1797596, 1797597    
Bug Blocks:    

Description Dhananjay Arunesh 2020-02-03 13:34:38 UTC
A vulnerability was found in smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6.6 and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session, as demonstrated by shell metacharacters in a MAIL FROM field. This affects the "uncommented" default configuration. The issue exists because of an incorrect return value upon failure of input validation.

Reference:
https://seclists.org/fulldisclosure/2020/Jan/49
https://www.openwall.com/lists/oss-security/2020/01/28/3
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45

Comment 1 Dhananjay Arunesh 2020-02-03 13:35:57 UTC
Created opensmtpd tracking bugs for this issue:

Affects: epel-all [bug 1797597]
Affects: fedora-all [bug 1797596]

Comment 2 Product Security DevOps Team 2020-02-03 14:09:36 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.