CVE-2020-7247
openbsd opensmtpd, debian linux, fedoraproject fedora
Published 29 Jan 2020 · updated 17 Jun 2026 · Analyzed
9.8 Critical · CVSS 3.1, NVD
Exploited in the wild
CISA added this to its Known Exploited Vulnerabilities catalog on 25 Mar 2022, with a remediation deadline of 15 Apr 2022 for US federal agencies.
Required action: Apply updates per vendor instructions.
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.
References
- packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html · Exploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html · Broken Link, Third Party Advisory, VDB Entry
- seclists.org/fulldisclosure/2020/Jan/49 · Exploit, Mailing List, Third Party Advisory
- www.openwall.com/lists/oss-security/2020/01/28/3 · Exploit, Mailing List, Third Party Advisory
- github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 · Patch
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ · Mailing List, Third Party Advisory
- seclists.org/bugtraq/2020/Jan/51 · Mailing List, Third Party Advisory
- usn.ubuntu.com/4268-1/ · Third Party Advisory
- www.debian.org/security/2020/dsa-4611 · Mailing List, Third Party Advisory
- www.kb.cert.org/vuls/id/390745 · Third Party Advisory, US Government Resource
- www.openbsd.org/security.html · Patch, Vendor Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247 · US Government Resource