CVE-2020-7247

KEV
Published: Gen 29, 2020 Last Modified: Nov 07, 2025
ExploitDB:
Other exploit source:
Google Dorks:
CRITICAL 9,8
Attack Vector: network
Attack Complexity: low
Privileges Required: none
User Interaction: none
Scope: unchanged
Confidentiality: high
Integrity: high
Availability: high
HIGH 10,0
Access Vector: network
Access Complexity: low
Authentication: none
Confidentiality: complete
Integrity: complete
Availability: complete

Description

AI Translation Available

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.

EPSS (Exploit Prediction Scoring System)

Trend Analysis

EPSS (Exploit Prediction Scoring System)

Prevede la probabilità di sfruttamento basata su intelligence sulle minacce e sulle caratteristiche della vulnerabilità.

EPSS Score
0,9411
Percentile
1,0th
Updated

EPSS Score Trend (Last 90 Days)

78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Stable
Common Consequences
Security Scopes Affected:
Confidentiality Integrity Availability Non-Repudiation
Potential Impacts:
Execute Unauthorized Code Or Commands Dos: Crash, Exit, Or Restart Read Files Or Directories Modify Files Or Directories Read Application Data Modify Application Data Hide Activities
Applicable Platforms
Technologies: AI/ML, Not Technology-Specific, Web Server
View CWE Details
755

Improper Handling of Exceptional Conditions

Incomplete
Common Consequences
Security Scopes Affected:
Other
Potential Impacts:
Other
Applicable Platforms
All platforms may be affected
View CWE Details
Exploit

OpenSMTPD 6.6.1 - Remote Code Execution

Verified

OpenSMTPD 6.6.1 - Remote Code Execution

View Exploit Code →
Exploit

OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)

Verified Metasploit Framework (MSF)

OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)

View Exploit Code →
Exploit

OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation …

Verified

OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Execution

View Exploit Code →
Operating System

Debian Linux by Debian

cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Ubuntu Linux by Canonical

cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Fedora by Fedoraproject

cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Ubuntu Linux by Canonical

cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Debian Linux by Debian

cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Application

Opensmtpd by Openbsd

cpe:2.3:a:openbsd:opensmtpd:6.6:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020…
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalat…
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Executi…
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Exe…
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Esc…
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-E…
http://seclists.org/fulldisclosure/2020/Jan/49
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
https://seclists.org/bugtraq/2020/Jan/51
https://usn.ubuntu.com/4268-1/
https://www.debian.org/security/2020/dsa-4611
https://www.kb.cert.org/vuls/id/390745
https://www.openbsd.org/security.html
http://www.openwall.com/lists/oss-security/2020/01/28/3
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalat…
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Executi…
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Exe…
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Esc…
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-E…
http://seclists.org/fulldisclosure/2020/Jan/49
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
https://seclists.org/bugtraq/2020/Jan/51
https://usn.ubuntu.com/4268-1/
https://www.debian.org/security/2020/dsa-4611
https://www.kb.cert.org/vuls/id/390745
https://www.openbsd.org/security.html
http://www.openwall.com/lists/oss-security/2020/01/28/3