Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2020-7247: OpenSMTPD Remote Code Execution Vulnerability

100
Patch now
CRITICAL 9.8EXPLOITEDREMOTEWATCHLISTDOWNGRADEMITIGATEMITIGATE

CVE-2020-7247 is a critical-severity flaw (CVSS 9.8) affecting opensmtpd, debian linux, fedora, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance99.0% (top 1%)
CISA exploited listYes, fix due 2022-04-15
WeaknessCWE-78, CWE-755
Published2020-01-29
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: canonical · debian · fedoraproject · openbsd

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

openbsd opensmtpd DOWNGRADE
Affected: 6.6
Fixed in: no fixed release known
Safe to downgrade to: a release before 6.6
1. Check installed version
apt-cache policy opensmtpd || rpm -q opensmtpd || opensmtpd --version
2. No fixed release: DOWNGRADE to a release before 6.6 (Debian / Ubuntu)
apt-cache madison opensmtpd sudo apt install opensmtpd=<VERSION_BEFORE_6.6> sudo apt-mark hold opensmtpd
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list opensmtpd sudo dnf downgrade opensmtpd-<VERSION_BEFORE_6.6> sudo dnf versionlock add opensmtpd
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
debian debian linux MITIGATE
Affected: 9.0 · 10.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
fedoraproject fedora MITIGATE
Affected: 32
Fixed in: no fixed release known
Safe to downgrade to: a release before 32
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
canonical ubuntu linux MITIGATE
Affected: 18.04 · 19.10
Fixed in: no fixed release known
Safe to downgrade to: a release before 18.04
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · feh · FIXED · 3.13.1-1.fc46 · FEDORA-2026-3c76a13a4f · source
sudo dnf upgrade --advisory=FEDORA-2026-3c76a13a4f
Fedora ELN · setroubleshoot · FIXED · 3.3.37-7.eln159 · FEDORA-2026-f81b122fe1 · source
sudo dnf upgrade --advisory=FEDORA-2026-f81b122fe1
Ubuntu 20.04 · opensmtpd · NOT AFFECTED
Ubuntu 22.04 · opensmtpd · NOT AFFECTED
Debian 12 · opensmtpd · FIXED · 6.6.2p1-1
sudo apt update && sudo apt install --only-upgrade opensmtpd dpkg --compare-versions "$(dpkg-query -W -f='${Version}' opensmtpd)" ge "6.6.2p1-1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · opensmtpd · FIXED · 6.6.2p1-1
sudo apt update && sudo apt install --only-upgrade opensmtpd dpkg --compare-versions "$(dpkg-query -W -f='${Version}' opensmtpd)" ge "6.6.2p1-1" && echo PATCHED || echo STILL-VULNERABLE
Alpine 3.20 · opensmtpd · FIXED · opensmtpd-6.6.2p1-r0
apk add --upgrade opensmtpd apk info -v opensmtpd
Alpine 3.21 · opensmtpd · FIXED · opensmtpd-6.6.2p1-r0
apk add --upgrade opensmtpd apk info -v opensmtpd
Alpine 3.22 · opensmtpd · FIXED · opensmtpd-6.6.2p1-r0
apk add --upgrade opensmtpd apk info -v opensmtpd
Alpine 3.23 · opensmtpd · FIXED · opensmtpd-6.6.2p1-r0
apk add --upgrade opensmtpd apk info -v opensmtpd

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2020-7247?

opensmtpd: downgrade or apply the listed mitigation; debian linux: mitigate or apply the listed mitigation; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2020-7247 being exploited?

Yes. CVE-2020-7247 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2020-7247 affect?

CVE-2020-7247 affects opensmtpd, debian linux, fedora. Severity is critical (CVSS 9.8). 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 fi

How urgent is CVE-2020-7247?

Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist

Software pages

Ubuntu vulnerabilities · Debian vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.