CVE-2020-7247
OpenSMTPD Remote Code Execution Vulnerability
- Critical 9.8
- Exploited: added to CISA KEV 25 Mar 2022
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.
Key facts
- Published
- 29 Jan 2020
- Last changed
- 21 Oct 2025
- Assigned by
- mitre
- KEV added
- 25 Mar 2022
- KEV fix due
- 15 Apr 2022
- EPSS
- 98.972% likely to be exploited in the next 30 days, higher than 99.93% of CVEs (scores for 15 Nov 2026)
- SSVC (CISA)
- Exploitation: active; Automatable: yes; Technical impact: total
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 9.8CVSS 3.1, Criticalfrom CISA (ADP container)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What to do
- Apply updates per vendor instructions.CISA KEV required action
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a |
|
Timeline
- 29 Jan 2020 Published
- 25 Mar 2022 CVE-2020-7247 added to CISA KEV
- 25 Mar 2022 Added to the CISA KEV catalogue
Weakness
References
- www.openbsd.org
- www.openwall.com
- github.com
- packetstormsecurity.com
- 20200129 [SECURITY] [DSA 4611-1] opensmtpd security update
- DSA-4611
- packetstormsecurity.com
- VU#390745
- 20200131 LPE and RCE in OpenSMTPD (CVE-2020-7247)
- packetstormsecurity.com
- packetstormsecurity.com
- USN-4268-1
- FEDORA-2020-b92d7083ca
- packetstormsecurity.com