Vulnerabilities

CVE-2020-7247

OpenSMTPD Remote Code Execution Vulnerability

Actively exploited (CISA KEV) Critical 9.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2020-01-29
Last modified
2026-06-17
Assigned by
cve@mitre.org
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
98.9 % among the highest of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Actively exploited

CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2022-03-25, with a remediation deadline of 2022-04-15 for US federal agencies.

Required action: Apply updates per vendor instructions.

Affected products

Vendor Product Versions Status
Canonical Ubuntu Linux 18.04 Affected
Canonical Ubuntu Linux 19.10 Affected
Debian Debian Linux 10.0 Affected
Debian Debian Linux 9.0 Affected
Fedoraproject Fedora 32 Affected
Openbsd Opensmtpd 6.6 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities