CVE-2020-7247OpenBSD OpenSMTPD
Remote Code Execution in OpenSMTPD 6.6
Critical 9.8 KEV No auth neededHigh EPSS
Follow: this CVE · OpenBSD · OpenBSD OpenSMTPD We alert you by email or Slack (account required).
- Priority
- 84
- CVSS 3.1
- 9.8
- EPSS
- 99.0% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- Mar 25, 2022
- CISA deadline
- Apr 15, 2022
- Ransomware use
- Unknown
- Published
- Jan 29, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
OpenSMTPD 6.6 in OpenBSD and other distributions allows remote attackers to execute arbitrary commands as root via a crafted SMTP session, exploiting shell metacharacters in the MAIL FROM field. The vulnerability affects the uncommented default configuration and has been confirmed as exploited in the wild.
Show the original NVD text
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.
Exploitation confirmed by CISA
smtp_mailaddr in smtp_session.c in OpenSMTPD, as used in OpenBSD and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 6.6.1, 6.6.2
Update OpenSMTPD to a version after 6.6 or apply the patch available in the official OpenBSD repository.
- Apply the vendor's security update for OpenSMTPD.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was April 15, 2022.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openbsd | opensmtpd | 6.6 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 32 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 19.10 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Broken Link Third Party Advisory VDB Entry
- seclists.org Exploit Mailing List Third Party Advisory
- www.openwall.com Exploit Mailing List Third Party Advisory
- github.com Patch
- lists.fedoraproject.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Mailing List Third Party Advisory
- www.kb.cert.org Third Party Advisory US Government Resource
- www.openbsd.org Patch Vendor Advisory
- www.cisa.gov US Government Resource