OpenBSD · OpenSMTPD · CWE-755 · CWE-78 · published 2020-01-29
CVE-2020-7247OpenSMTPD Remote Code Execution Vulnerability
This week Known exploited in the wild.
CVE-2020-7247 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2022-03-25. EPSS estimates a 99% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This OpenSMTPD vulnerability: CVSS 9.8 (v3.1), attacks can be automated, a successful attack gives total control of the component. Patched packages are out for Debian and Ubuntu. US federal agencies must remediate by 2022-04-15. Patch this week.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
CISA required action: Apply updates per vendor instructions. (federal due date 2022-04-15)
Linux distribution packages
If you run the distro’s package rather than an upstream build, this is the version to look for.
| Distro | Release | Package | Status |
|---|---|---|---|
| Debian | 13 trixie | opensmtpd | Fixed in 6.6.2p1-1 |
| 12 bookworm | opensmtpd | Fixed in 6.6.2p1-1 | |
| Ubuntu | 18.04 LTS | opensmtpd | Fixed in 6.0.3p1-1ubuntu0.1 |
From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.
Patch events
Other softwareOpenBSD OpenSMTPD
Remote Code ExecutionCVE-2020-7247
Why: Known exploited in the wild.
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | Yes, added 2022-03-25 | CISA KEV |
| Ransomware use | Unknown | CISA KEV |
| EPSS (30-day exploitation probability) | 99% (100th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 9.8 (v3.1)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA / CISA ADP |
| SSVC exploitation | active | CISA Vulnrichment |
| SSVC automatable | Yes | CISA Vulnrichment |
| SSVC technical impact | total | CISA Vulnrichment |
Weakness: CWE-755: Improper Handling of Exceptional Conditions · CWE-78: Improper Neutralization of Special Elements used in an OS Command
More from this vendor: all OpenBSD vulnerabilities · recent KEV additions
Affected versions (from the CVE record)#
- Product
n/a(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.