CVE-2020-7247

9.8 CRITICAL CISA KEV - Actively Exploited
Published: January 29, 2020 Modified: November 07, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
Source: cve@mitre.org
Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
Source: cve@mitre.org
Broken Link Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2020/Jan/49
Source: cve@mitre.org
Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2020/01/28/3
Source: cve@mitre.org
Exploit Mailing List Third Party Advisory
https://seclists.org/bugtraq/2020/Jan/51
Source: cve@mitre.org
Mailing List Third Party Advisory
https://usn.ubuntu.com/4268-1/
Source: cve@mitre.org
Third Party Advisory
https://www.debian.org/security/2020/dsa-4611
Source: cve@mitre.org
Mailing List Third Party Advisory
https://www.kb.cert.org/vuls/id/390745
Source: cve@mitre.org
Third Party Advisory US Government Resource
https://www.openbsd.org/security.html
Source: cve@mitre.org
Patch Vendor Advisory
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2020/Jan/49
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2020/01/28/3
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Mailing List Third Party Advisory
https://seclists.org/bugtraq/2020/Jan/51
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://usn.ubuntu.com/4268-1/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.debian.org/security/2020/dsa-4611
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://www.kb.cert.org/vuls/id/390745
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory US Government Resource
https://www.openbsd.org/security.html
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Vendor Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
US Government Resource

29 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
94.1%
100th percentile
Exploitation Status
Actively Exploited
Remediation due: 2022-04-15

Affected Vendors

debian fedoraproject openbsd canonical