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
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
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:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 Severity and Vector Strings:
Vector:
(AV:N/AC:L/Au:N/C:C/I:C/A:C)
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 [email protected] .
URL
Source(s)
Tag(s)
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
CVE, MITRE
Exploit
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
CVE, MITRE
Exploit
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
CVE, MITRE
Exploit
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
CVE, MITRE
Exploit
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
CVE, MITRE
Broken Link
Third Party Advisory
VDB Entry
http://seclists.org/fulldisclosure/2020/Jan/49
CVE, MITRE
Exploit
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2020/01/28/3
CVE, MITRE
Exploit
Mailing List
Third Party Advisory
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
CVE, MITRE
Patch
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
CVE, MITRE
Mailing List
Third Party Advisory
https://seclists.org/bugtraq/2020/Jan/51
CVE, MITRE
Mailing List
Third Party Advisory
https://usn.ubuntu.com/4268-1/
CVE, MITRE
Third Party Advisory
https://www.debian.org/security/2020/dsa-4611
CVE, MITRE
Mailing List
Third Party Advisory
https://www.kb.cert.org/vuls/id/390745
CVE, MITRE
Third Party Advisory
US Government Resource
https://www.openbsd.org/security.html
CVE, MITRE
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-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
NIST  
CWE-755
Improper Handling of Exceptional Conditions
NIST  
CISA-ADP  
Change History
20 change records found show changes
Modified Analysis by NIST 4/03/2025 3:43:07 PM
Action
Type
Old Value
New Value
CVE Modified by CISA-ADP 2/04/2025 4:15:20 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Added
CWE
CWE-755
CVE Modified by CVE 11/21/2024 12:36:55 AM
Action
Type
Old Value
New Value
Added
Reference
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
Added
Reference
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
Added
Reference
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
Added
Reference
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
Added
Reference
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
Added
Reference
http://seclists.org/fulldisclosure/2020/Jan/49
Added
Reference
http://www.openwall.com/lists/oss-security/2020/01/28/3
Added
Reference
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
Added
Reference
https://seclists.org/bugtraq/2020/Jan/51
Added
Reference
https://usn.ubuntu.com/4268-1/
Added
Reference
https://www.debian.org/security/2020/dsa-4611
Added
Reference
https://www.kb.cert.org/vuls/id/390745
Added
Reference
https://www.openbsd.org/security.html
Modified Analysis by NIST 7/16/2024 1:40:26 PM
Action
Type
Old Value
New Value
Changed
Reference Type
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory, VDB Entry
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
Changed
Reference Type
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link, Third Party Advisory, VDB Entry
Changed
Reference Type
http://seclists.org/fulldisclosure/2020/Jan/49 Mailing List, Third Party Advisory
http://seclists.org/fulldisclosure/2020/Jan/49 Exploit, Mailing List, Third Party Advisory
Changed
Reference Type
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch, Third Party Advisory
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ No Types Assigned
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List, Third Party Advisory
Changed
Reference Type
https://www.debian.org/security/2020/dsa-4611 Third Party Advisory
https://www.debian.org/security/2020/dsa-4611 Mailing List, Third Party Advisory
CVE Modified by MITRE 5/14/2024 3:36:22 AM
Action
Type
Old Value
New Value
CVE Modified by MITRE 11/06/2023 10:25:43 PM
Action
Type
Old Value
New Value
Added
Reference
MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ [No types assigned]
Removed
Reference
MITRE https://lists.fedoraproject.org/archives/list/[email protected] /message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
Modified Analysis by NIST 4/29/2022 9:24:05 AM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
*cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
Added
CPE Configuration
OR
*cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
Changed
Reference Type
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory, VDB Entry
Changed
Reference Type
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html No Types Assigned
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
Changed
Reference Type
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html No Types Assigned
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html Exploit, Third Party Advisory, VDB Entry
Changed
Reference Type
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html No Types Assigned
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html Broken Link
Changed
Reference Type
http://seclists.org/fulldisclosure/2020/Jan/49 No Types Assigned
http://seclists.org/fulldisclosure/2020/Jan/49 Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ Mailing List, Third Party Advisory
Changed
Reference Type
https://seclists.org/bugtraq/2020/Jan/51 Third Party Advisory
https://seclists.org/bugtraq/2020/Jan/51 Mailing List, Third Party Advisory
Changed
Reference Type
https://usn.ubuntu.com/4268-1/ No Types Assigned
https://usn.ubuntu.com/4268-1/ Third Party Advisory
Changed
Reference Type
https://www.kb.cert.org/vuls/id/390745 No Types Assigned
https://www.kb.cert.org/vuls/id/390745 Third Party Advisory, US Government Resource
CWE Remap by NIST 7/21/2021 7:39:23 AM
Action
Type
Old Value
New Value
Changed
CWE
CWE-252
CWE-755
CWE-78
CVE Modified by MITRE 4/06/2021 12:15:16 PM
Action
Type
Old Value
New Value
Added
Reference
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html [No Types Assigned]
CVE Modified by MITRE 3/16/2020 8:15:12 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ [No Types Assigned]
CVE Modified by MITRE 2/11/2020 4:15:11 PM
Action
Type
Old Value
New Value
Added
Reference
https://usn.ubuntu.com/4268-1/ [No Types Assigned]
CVE Modified by MITRE 2/11/2020 1:15:17 PM
Action
Type
Old Value
New Value
Added
Reference
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html [No Types Assigned]
CVE Modified by MITRE 2/07/2020 1:15:11 PM
Action
Type
Old Value
New Value
Added
Reference
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html [No Types Assigned]
CVE Modified by MITRE 2/01/2020 5:15:09 AM
Action
Type
Old Value
New Value
Added
Reference
http://seclists.org/fulldisclosure/2020/Jan/49 [No Types Assigned]
CVE Modified by MITRE 1/31/2020 6:15:10 PM
Action
Type
Old Value
New Value
Added
Reference
https://www.kb.cert.org/vuls/id/390745 [No Types Assigned]
Initial Analysis by NIST 1/31/2020 9:43:52 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Added
CVSS V2
NIST (AV:N/AC:L/Au:N/C:C/I:C/A:C)
Added
CWE
NIST CWE-252
Added
CPE Configuration
OR
*cpe:2.3:a:openbsd:opensmtpd:6.6:*:*:*:*:*:*:*
Added
CPE Configuration
OR
*cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Changed
Reference Type
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html No Types Assigned
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
Changed
Reference Type
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html No Types Assigned
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html Third Party Advisory
Changed
Reference Type
http://www.openwall.com/lists/oss-security/2020/01/28/3 No Types Assigned
http://www.openwall.com/lists/oss-security/2020/01/28/3 Exploit, Mailing List, Third Party Advisory
Changed
Reference Type
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 No Types Assigned
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 Patch, Third Party Advisory
Changed
Reference Type
https://seclists.org/bugtraq/2020/Jan/51 No Types Assigned
https://seclists.org/bugtraq/2020/Jan/51 Third Party Advisory
Changed
Reference Type
https://www.debian.org/security/2020/dsa-4611 No Types Assigned
https://www.debian.org/security/2020/dsa-4611 Third Party Advisory
Changed
Reference Type
https://www.openbsd.org/security.html No Types Assigned
https://www.openbsd.org/security.html Patch, Vendor Advisory
CVE Modified by MITRE 1/30/2020 1:15:11 PM
Action
Type
Old Value
New Value
Added
Reference
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html [No Types Assigned]
CVE Modified by MITRE 1/30/2020 7:15:11 AM
Action
Type
Old Value
New Value
Added
Reference
https://www.debian.org/security/2020/dsa-4611 [No Types Assigned]
CVE Modified by MITRE 1/30/2020 4:15:10 AM
Action
Type
Old Value
New Value
Added
Reference
https://seclists.org/bugtraq/2020/Jan/51 [No Types Assigned]
CVE Modified by MITRE 1/29/2020 2:15:14 PM
Action
Type
Old Value
New Value
Added
Reference
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html [No Types Assigned]
Quick Info
CVE Dictionary Entry: CVE-2020-7247 NVD
Published Date: 01/29/2020 NVD
Last Modified: 04/03/2025
Source: MITRE