OpenSMTPD Remote Code Execution Vulnerability
- CVSS
- 9.8Critical
- Chance of exploitation (EPSS)
- 99%
- Published
- Jan 29, 2020
- In the news
- Not yet
What to do
A critical command injection flaw in Canonical Ubuntu Linux, Debian Linux, Fedora and 1 more that can be attacked over the network without logging in. Attackers are already using it, so treat it as urgent.
Action: Apply updates per vendor instructions.
US federal agencies must fix this by Apr 15, 2022 (past due).
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.
Affected products
Get alerts for these →Timeline 4
Latest change: Tenable Cloud Security plugin 499262: Alpine: multiple opensmtpd packages: security update to 6.6.2_p1-r0 (Dec 3, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Yesterday
Fri, Mar 25, 2022
Wed, Jan 29, 2020
- CVECVE-2020-7247 published (CVSS 9.8)CVE Program · 16:15 UTC
References 29
- github.com Patch /openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
- www.openbsd.org PatchVendor Advisory /security.html
- github.com Patch /openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
- www.openbsd.org PatchVendor Advisory /security.html
- packetstormsecurity.com Exploit /files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
- packetstormsecurity.com Exploit /files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
- packetstormsecurity.com Exploit /files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
- packetstormsecurity.com Exploit /files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
- seclists.org Exploit /fulldisclosure/2020/Jan/49
- www.openwall.com Exploit /lists/oss-security/2020/01/28/3
- packetstormsecurity.com Exploit /files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
- packetstormsecurity.com Exploit /files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
- packetstormsecurity.com Exploit /files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
- packetstormsecurity.com Exploit /files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
- seclists.org Exploit /fulldisclosure/2020/Jan/49
- www.openwall.com Exploit /lists/oss-security/2020/01/28/3
- packetstormsecurity.com /files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
- lists.fedoraproject.org /archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
- seclists.org /bugtraq/2020/Jan/51
- usn.ubuntu.com /4268-1/
- www.debian.org /security/2020/dsa-4611
- www.kb.cert.org /vuls/id/390745
- packetstormsecurity.com /files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
- lists.fedoraproject.org /archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
- seclists.org /bugtraq/2020/Jan/51