Back to CVE records
Critical 9.8Known exploited (CISA KEV)Published Jan 29, 2020

CVE-2020-7247smtp_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…

Updated under an hour ago ()

Does this affect you?

It affects openbsd opensmtpd and 3 other products. Add what you run to find out whether that includes you.

CISA lists it as known exploited since Mar 25, 2022; federal agencies had to remediate by Apr 15, 2022. Treat that date as your deadline.

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.

CVSS
9.8 CRITICAL (v3.1, CISA ADP)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-755
Known exploited
Added to CISA KEV Mar 25, 2022; federal remediation due Apr 15, 2022Apply updates per vendor instructions.
EPSS (exploitation in the next 30 days)
98.97% (percentile 100)
Assigned by
mitre
NVD analysis
Analyzed
Record last updated
Oct 21, 2025
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
openbsd opensmtpd
openbsd:opensmtpd
6.6
NVD
debian debian_linux
debian:debian_linux
9.0; 10.0
NVD
fedoraproject fedora
fedoraproject:fedora
32
NVD
canonical ubuntu_linux
canonical:ubuntu_linux
18.04; 19.10
NVD

References

  • x-refsource-confirm, patch, vendor-advisory
  • x-refsource-misc, exploit, mailing-list, third-party-advisory
  • x-refsource-confirm, patch
  • x-refsource-misc, exploit, third-party-advisory, vdb-entry
  • mailing-list, x-refsource-bugtraq, third-party-advisory
  • vendor-advisory, x-refsource-debian, mailing-list, third-party-advisory
  • x-refsource-misc, exploit, third-party-advisory, vdb-entry
  • third-party-advisory, x-refsource-cert-vn, us-government-resource
  • mailing-list, x-refsource-fulldisc, exploit, third-party-advisory
  • x-refsource-misc, exploit, third-party-advisory, vdb-entry
  • x-refsource-misc, exploit, third-party-advisory, vdb-entry
  • vendor-advisory, x-refsource-ubuntu, third-party-advisory
  • vendor-advisory, x-refsource-fedora, mailing-list, third-party-advisory
  • x-refsource-misc, broken-link, third-party-advisory, vdb-entry
  • us-government-resource

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.