RULE(RULE ID:505708)

Rule General Information
Release Date: 2020-03-25
Rule Name: OpenSMTPD smtp_mailaddr Remote Command Execution Vulnerability (CVE-2020-7247)
Severity:
CVE ID:
Rule Protection Details
Description: 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.
Impact: An attacker can execute arbitrary command via a successful exploit in the context of the vulnerable software.
Affected OS: Windows, Others
Reference: http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
Solutions
The vendors have released upgrade patches to fix vulnerabilities, please visit:
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45