CVE-2020-7247

published 29 Jan 2020 · updated 21 Oct 2025

OpenSMTPD Remote Code Execution Vulnerability

10.0CriticalCVSS 9.8EPSS 99%CISA KEV · due 15 Apr 20225 public exploits

Exploited in the wild, in CISA KEV since 25 Mar 2022 (due 15 Apr 2022), with 5 public exploits. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
OpenBSDOpenSMTPD

Exploit evidence

5 public sources

kev

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in OpenBSD, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-7247 severity on Zeptric[![CVE-2020-7247](https://zeptric.io/badge/cve/CVE-2020-7247.svg)](https://zeptric.io/cve/CVE-2020-7247)