U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2020-7247 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html Exploit  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link  Third Party Advisory  VDB Entry 
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link  Third Party Advisory  VDB Entry 
http://seclists.org/fulldisclosure/2020/Jan/49 Exploit  Mailing List  Third Party Advisory 
http://seclists.org/fulldisclosure/2020/Jan/49 Exploit  Mailing List  Third Party Advisory 
http://www.openwall.com/lists/oss-security/2020/01/28/3 Exploit  Mailing List  Third Party Advisory 
http://www.openwall.com/lists/oss-security/2020/01/28/3 Exploit  Mailing List  Third Party Advisory 
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch 
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch 
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List  Third Party Advisory 
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List  Third Party Advisory 
https://seclists.org/bugtraq/2020/Jan/51 Mailing List  Third Party Advisory 
https://seclists.org/bugtraq/2020/Jan/51 Mailing List  Third Party Advisory 
https://usn.ubuntu.com/4268-1/ Third Party Advisory 
https://usn.ubuntu.com/4268-1/ Third Party Advisory 
https://www.debian.org/security/2020/dsa-4611 Mailing List  Third Party Advisory 
https://www.debian.org/security/2020/dsa-4611 Mailing List  Third Party Advisory 
https://www.kb.cert.org/vuls/id/390745 Third Party Advisory  US Government Resource 
https://www.kb.cert.org/vuls/id/390745 Third Party Advisory  US Government Resource 
https://www.openbsd.org/security.html Patch  Vendor Advisory 
https://www.openbsd.org/security.html Patch  Vendor Advisory 

This CVE is in CISA's Known Exploited Vulnerabilities Catalog

Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.

Vulnerability Name Date Added Due Date Required Action
OpenSMTPD Remote Code Execution Vulnerability 03/25/2022 04/15/2022 Apply updates per vendor instructions.

Weakness Enumeration

CWE-ID CWE Name Source
CWE-755 Improper Handling of Exceptional Conditions cwe source acceptance level NIST  
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

18 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2020-7247
NVD Published Date:
01/29/2020
NVD Last Modified:
11/21/2024
Source:
MITRE