ZeroDay Brief
CVE-2020-7247 Exploited in the wild

OpenSMTPD Remote Code Execution Vulnerability

CVSS
9.8Critical
Chance of exploitation (EPSS)
99%
Published
Jan 29, 2020
In the news
Not yet
Vendor advisory More from this vendor

What to do

A critical command injection flaw in Canonical Ubuntu Linux, Debian Linux, Fedora and 1 more that can be attacked over the network without logging in. Attackers are already using it, so treat it as urgent.

Action: Apply updates per vendor instructions.

US federal agencies must fix this by Apr 15, 2022 (past due).

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.

CWE-78CWE-755

Affected products

Get alerts for these →

Timeline 4

Latest change: Tenable Cloud Security plugin 499262: Alpine: multiple opensmtpd packages: security update to 6.6.2_p1-r0 (Dec 3, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 29

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”