CVE-2020-7247
published critical CVSS 3.1 · 9.8opensmtpd: arbitrary commands execution in smtp_mailaddr in smtp_session.c via crafted SMTP session
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | opensmtpd | Fixed | 6.6.2_p1-r0 | Package fix record |
| Debian | buster | opensmtpd | Advisory build | 6.0.3p1-5+deb10u3 | DSA-4611-1 |
| Ubuntu | bionic | opensmtpd | Advisory build | 6.0.3p1-1ubuntu0.1 | USN-4268-1 |
| Alpine Linux | v3.11 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.12 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.13 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.14 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.15 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.16 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.17 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.18 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.19 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.20 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.21 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.22 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.23 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Alpine Linux | v3.24 | opensmtpd | Fixed | 6.6.2p1-r0 | Package fix record |
| Debian | stretch | opensmtpd | Advisory build | 6.0.2p1-2+deb9u2 | DSA-4611-1 |
| Ubuntu | esm | opensmtpd | Advisory build | 5.4.1p1-1ubuntu0.1~esm1 | USN-4875-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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-755 CWE-755 Improper Handling of Exceptional Conditions
References
15- http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
- http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
- http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
- 20200131 LPE and RCE in OpenSMTPD (CVE-2020-7247) http://seclists.org/fulldisclosure/2020/Jan/49
- http://www.openwall.com/lists/oss-security/2020/01/28/3
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
- FEDORA-2020-b92d7083ca https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
- 20200129 [SECURITY] [DSA 4611-1] opensmtpd security update https://seclists.org/bugtraq/2020/Jan/51
- USN-4268-1 https://usn.ubuntu.com/4268-1/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247
- DSA-4611 https://www.debian.org/security/2020/dsa-4611
- VU#390745 https://www.kb.cert.org/vuls/id/390745
- https://www.openbsd.org/security.html
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cd75a71b3b70a0b155116ea2565fec9dfc2e036207eaad19f24063e24b7255a9
- Ingested
- 23 Sep 2026, 07:51:18 UTC
- Source record
- Official CVE record