openbsd opensmtpd CVE-2020-7247 vulnerability in OpenBSD and Other Products
Published on January 29, 2020

product logo product logo product logo product logo
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.

Vendor Advisory NVD

Known Exploited Vulnerability

This OpenSMTPD Remote Code Execution Vulnerability is part of CISA's list of Known Exploited Vulnerabilities. smtp_mailaddr in smtp_session.c in OpenSMTPD, as used in OpenBSD and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session.

The following remediation steps are recommended / required by April 15, 2022: Apply updates per vendor instructions.

Vulnerability Analysis

CVE-2020-7247 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. It has the highest possible exploitability rating (3.9). The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.

What is a Shell injection Vulnerability?

The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

CVE-2020-7247 has been classified to as a Shell injection vulnerability or weakness.

Improper Handling of Exceptional Conditions

The software does not handle or incorrectly handles an exceptional condition.


Products Associated with CVE-2020-7247

You can be notified by stack.watch whenever vulnerabilities like CVE-2020-7247 are published in these products:

 
 
 
 

What versions are vulnerable to CVE-2020-7247?