Live threats

All CVEs / OpenBSD

CVE-2020-7247OpenBSD OpenSMTPD

Remote Code Execution in OpenSMTPD 6.6

Critical 9.8 KEV No auth neededHigh EPSS

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
Weakness (CWE)
CWE-78, CWE-755
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.

Source text, unmodified. NVD.

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.

Source text, unmodified. CISA KEV.

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.

Vendor advisory · www.openbsd.org ↗

  1. Apply the vendor's security update for OpenSMTPD.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was April 15, 2022.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected products (CPE)

VendorProductVersions
openbsdopensmtpd6.6
debiandebian_linux9.0
debiandebian_linux10.0
fedoraprojectfedora32
canonicalubuntu_linux18.04
canonicalubuntu_linux19.10

Official sources

References

Links published by the sources. Open them with care.