CVE-2020-7247

Description

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.

Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
98.972%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-03-25
Public exploit code
Yes
Exploit references (NVD and CNA): 6
Metasploit modules: 1
Nuclei templates: 1
Exploit-DB: 3

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameOpenSMTPD Remote Code Execution Vulnerability
Vendor / productOpenBSD / OpenSMTPD
Date added2022-03-25
Federal remediation due date2022-04-15
Required actionApply updates per vendor instructions.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableyes
Technical impacttotal
Scored2025-02-04

Timeline

  1. 2020-01-29Published by the CNA15:53 UTC
  2. 2020-01-30First Exploit-DB entry (EDB-ID 47984)1 day after publication
  3. 2022-03-25Added to the CISA KEV catalog786 days after publication
  4. 2025-02-04CISA SSVC decision recorded1833 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 48051remoteopenbsd2020-02-11yes
EDB-ID 48038remotelinux2020-02-10yes
EDB-ID 47984remotelinux2020-01-30yes

Nuclei templates:

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
openbsd opensmtpd6.6no fix listednot listed
canonical ubuntu_linux18.04no fix listed19.10no fix listednot listednot listed
debian debian_linux10.0no fix listed9.0no fix listednot listednot listed
fedoraproject fedora32no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources