Actively exploited vulnerability / CVE-2020-7247
OpenSMTPD: an attacker can take full control of your email server
This vulnerability lets an attacker on the internet run any command on the email server with full administrator rights, without needing a password. In practice they could read or change company email, install malicious software and use the server for further attacks. It is on the lists of vulnerabilities used in real attacks kept by both CISA (the US cybersecurity agency) and ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2020-7247 · EUVD-2020-28374
- Severity
- Critical (9.8/10)
- On the CISA list (US)
- yes, since 25 March 2022
- Deadline given to US federal agencies
- 15 April 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 99.0% (FIRST's estimate for the next 30 days)
Does it concern you?
OpenSMTPD is software for sending and receiving email, included in the OpenBSD operating system and used in other products. You may have it if your company runs its own email server on OpenBSD or a similar system.
OpenSMTPD version 6.6, as shipped in OpenBSD 6.6, is affected, including with its default configuration. Ask whoever manages your email server which OpenSMTPD version it runs.
Affected products and versions
- OpenBSD OpenSMTPD
What to do
Apply the security updates following the vendor's instructions, moving to the latest OpenSMTPD or OpenBSD release. Until then, ask your administrator to limit internet access to the email server.
The official description
The text below is the description from the public database.
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.
Sources
- Debian Security Tracker
- CVE Program
- Vendor advisory: nvd.nist.gov
- GitHub Advisory Database
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.