CVE-2020-7247
CRITICAL 9.8CVSS 3.1known exploitedOpenSMTPD Remote Code Execution Vulnerability
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.
- Published
- 29 Jan 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-755CWE-78
- Sources
- NVDJSONCISA KEVJSON
In CISA's Known Exploited Vulnerabilities catalog since 25 Mar 2022; US federal agencies must fix it by 15 Apr 2022.
Apply updates per vendor instructions.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openbsd | opensmtpdcpe:2.3:a:openbsd:opensmtpd:6.6:*:*:*:*:*:*:* |
= 6.6 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* |
= 32 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* |
= 19.10 |
References
- http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html · Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html · Broken Link, Third Party Advisory, VDB Entry
- http://seclists.org/fulldisclosure/2020/Jan/49 · Exploit, Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2020/01/28/3 · Exploit, Mailing List, Third Party Advisory
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 · Patch
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ · Mailing List, Third Party Advisory
- https://seclists.org/bugtraq/2020/Jan/51 · Mailing List, Third Party Advisory
- https://usn.ubuntu.com/4268-1/ · Third Party Advisory
- https://www.debian.org/security/2020/dsa-4611 · Mailing List, Third Party Advisory
- https://www.kb.cert.org/vuls/id/390745 · Third Party Advisory, US Government Resource
- https://www.openbsd.org/security.html · Patch, Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247 · US Government Resource
- https://nvd.nist.gov/vuln/detail/CVE-2020-7247
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 29 Jan 2020)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 25 Mar 2022)
- 25 Mar 2022 00:00 UTC · Listed as known exploited