CVE-2020-7247
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…
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as OpenSMTPD Remote Code Execution Vulnerability.
- Added
- 25 Mar 2022
- Fix due (US federal)
- 15 Apr 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.0% · top 0.1% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Weakness
Affected products
n/a
- affected n/a
References (15)
- https://www.openbsd.org/security.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.openwall.com/lists/oss-security/2020/01/28/3 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- 20200129 [SECURITY] [DSA 4611-1] opensmtpd security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- DSA-4611 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- VU#390745 (opens in a new tab)third-party-advisoryx_refsource_CERT-VNx_transferred
- 20200131 LPE and RCE in OpenSMTPD (CVE-2020-7247) (opens in a new tab)mailing-listx_refsource_FULLDISCx_transferred
- http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html (opens in a new tab)x_refsource_MISCx_transferred
- USN-4268-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- FEDORA-2020-b92d7083ca (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-7247)Record last updated .