CVE-2020-7247: OpenSMTPD Remote Code Execution Vulnerability
Reference page built from the source records below, each shown as its source publishes it. Dataset version ref-b670cdd38e8b, updated 2026-11-02T23:39:54.475Z.
CISA Known Exploited Vulnerabilities
- Name
- OpenSMTPD Remote Code Execution Vulnerability
- Vendor
- OpenBSD
- Product
- OpenSMTPD
- Added to the catalog
- 2022-03-25
- Due date for US federal agencies
- 2022-04-15
- Weaknesses
- CWE-755, CWE-78
- Catalog version
- 2026.10.30
smtp_mailaddr in smtp_session.c in OpenSMTPD, as used in OpenBSD and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session.
Required action (CISA)
Apply updates per vendor instructions.
Ransomware use: CISA does not mark known use of this vulnerability in ransomware campaigns.
Links in CISA's notes
Read on 2026-11-02T23:39:54.475Z under licence cisa-kev-cc0@b0067899 from https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
NVD analysis
- Status
- Analyzed
- Published
- 2020-01-29T16:15:12.897
- Last modified
- 2026-06-17T03:24:35.133
- Weaknesses
- CWE-78, CWE-755
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.
| Metric | Score | Severity | Vector | Scored by |
|---|---|---|---|---|
| CVSS 3.1 | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | [email protected] (Primary) |
| CVSS 3.1 | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) |
| CVSS 2.0 | 10 | HIGH | AV:N/AC:L/Au:N/C:C/I:C/A:C | [email protected] (Primary) |
References
- http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html (Broken Link, Third Party Advisory, VDB Entry)
- http://seclists.org/fulldisclosure/2020/Jan/49 (Exploit, Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2020/01/28/3 (Exploit, Mailing List, Third Party Advisory)
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 (Patch)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ (Mailing List, Third Party Advisory)
- https://seclists.org/bugtraq/2020/Jan/51 (Mailing List, Third Party Advisory)
- https://usn.ubuntu.com/4268-1/ (Third Party Advisory)
- https://www.debian.org/security/2020/dsa-4611 (Mailing List, Third Party Advisory)
- https://www.kb.cert.org/vuls/id/390745 (Third Party Advisory, US Government Resource)
- https://www.openbsd.org/security.html (Patch, Vendor Advisory)
- http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html (Broken Link, Third Party Advisory, VDB Entry)
- http://seclists.org/fulldisclosure/2020/Jan/49 (Exploit, Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2020/01/28/3 (Exploit, Mailing List, Third Party Advisory)
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45 (Patch)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/ (Mailing List, Third Party Advisory)
- https://seclists.org/bugtraq/2020/Jan/51 (Mailing List, Third Party Advisory)
- https://usn.ubuntu.com/4268-1/ (Third Party Advisory)
- https://www.debian.org/security/2020/dsa-4611 (Mailing List, Third Party Advisory)
- https://www.kb.cert.org/vuls/id/390745 (Third Party Advisory, US Government Resource)
- https://www.openbsd.org/security.html (Patch, Vendor Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247 (US Government Resource)
This product uses the NVD API but is not endorsed or certified by the NVD.
Read on 2026-11-02T23:41:43.468Z under licence nvd-api-terms-of-use@ff2a5288 from https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2020-7247
CVE record
- Assigner
- mitre
- State
- PUBLISHED
- Published
- 2020-01-29T15:53:18.000Z
- Updated
- 2025-10-21T23:35:53.008Z
- Problem types
- n/a
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.
References
- https://www.openbsd.org/security.html
- http://www.openwall.com/lists/oss-security/2020/01/28/3
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
- http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
- 20200129 [SECURITY] [DSA 4611-1] opensmtpd security update
- DSA-4611
- http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
- VU#390745
- 20200131 LPE and RCE in OpenSMTPD (CVE-2020-7247)
- 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
- USN-4268-1
- FEDORA-2020-b92d7083ca
- http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
Read on 2026-11-03T01:04:58.154Z under licence cve-terms-of-use@81bfa2f3 from https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2020/7xxx/CVE-2020-7247.json
Defensive techniques (MITRE D3FEND)
D3FEND maps these defensive techniques to the weakness (CWE) that NVD lists for this CVE, through the digital artifacts the weakness affects. D3FEND does not say they stop this vulnerability.
CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Model: Asset Vulnerability Enumeration (acts on Software)
- Harden: Software Update (acts on Software)
- Restore: Restore Software (acts on Software)
- Harden: Domain Logic Validation (acts on Subroutine)
- Harden: Variable Initialization (acts on Subroutine)
- Harden: Credential Scrubbing (acts on Subroutine)
- Harden: Trusted Library (acts on Subroutine)
- Isolate: Application-based Process Isolation (acts on Subroutine)
- Model: Software Inventory (acts on Software)
D3FEND ontology version 1.6.0.
Read on 2026-11-02T23:54:16.526Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-78.json
CWE-755: Improper Handling of Exceptional Conditions
D3FEND lists no defensive technique for this weakness.
D3FEND ontology version 1.6.0.
Read on 2026-11-03T00:02:48.486Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-755.json
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/
Sources and licences
CISA
Source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30, CC0 1.0. Use of this data does not imply endorsement by CISA or DHS.
National Vulnerability Database (NIST)
This product uses the NVD API but is not endorsed or certified by the NVD.
NVD API Terms of Use (NIST publications in the public domain, 17 U.S.C. 105)
CVE Program, The MITRE Corporation
Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
MITRE D3FEND
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/MITRE D3FEND Terms of Use (site + knowledge graph); source repo MIT
Cite this page
Dragons Eye Ransomware Tracker, "CVE-2020-7247: OpenSMTPD Remote Code Execution Vulnerability",
entity page, dataset version ref-b670cdd38e8b, updated 2026-11-02T23:39:54.475Z,
https://ransomware-tracker.com/cve/CVE-2020-7247 (accessed 2026-11-03).
Underlying source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30.
Underlying source: National Vulnerability Database (NIST), CVE API 2.0, record last modified 2026-06-17T03:24:35.133.
Underlying source: CVE List (CVE Program, The MITRE Corporation), record updated 2025-10-21T23:35:53.008Z.
Underlying source: MITRE D3FEND, ontology version 1.6.0.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.