Synced 19 Jun 2026 07:34 UTC Account
← All products

CVE-2020-7247

CRITICAL severity · CVSS 9.8 · OS command injection · actively exploited (CISA KEV)
9.8CVSS CRITICAL exploited
Actively exploited in the wild (CISA Known Exploited Vulnerabilities). Added to KEV 2022-03-25. US federal agencies must patch by 2022-04-15.

Summary

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.

Impact & exploitability

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
Exploit probability (EPSS)99%

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products we track (1)

Recommendation

This vulnerability is being actively exploited in the wild — patch affected products urgently. Open any affected product above for its exact safe version.

Official patch: https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 ↗