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.
CVE-2020-7247
Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-03-25), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALhigh confidence
- EG Risk
- 99EG Risk 99/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation100% × 40%Automatability100% × 15%CISA SSVC: Attend at low mission impact; Act at medium or high.Action: A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high. - EPSS PROB
- 99%
- EPSS %ILE
- 99th
- KEV
- ⚠ Exploited
CISA SSVCAttend at low mission impact; Act at medium or high.
A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high.
Exploitation active (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
January 29, 2020
Last Modified
November 7, 2025
Advisory Details (10)
Auto-updated Oct 9, 2026Bugtraq: [SECURITY] [DSA 4611-1] opensmtpd security update
https://seclists.org/bugtraq/2020/Jan/51commit 9dcfda045474 (openbsd/src)
Fix landed in openbsd/src commit 9dcfda045474 — awaiting tagged release
https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45oss-security - LPE and RCE in OpenSMTPD (CVE-2020-7247)
http://www.openwall.com/lists/oss-security/2020/01/28/3Full Disclosure: LPE and RCE in OpenSMTPD (CVE-2020-7247)
http://seclists.org/fulldisclosure/2020/Jan/49Packet Storm
http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.htmlPacket Storm
http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.htmlPacket Storm
http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.htmlPacket Storm
http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.htmlPacket Storm
http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html[SECURITY] Fedora 32 Update: opensmtpd-6.6.4p1-2.fc32 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/Patch Availability(2)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | opensmtpd (6.0.3p1-1ubuntu0.1) @ bionic | 2026-10-10 | ubuntu |
| ubuntu | opensmtpd (5.7.3p2-1ubuntu0.1~esm2) @ xenial | 2026-10-10 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(12 across 12 ecosystems)
Alpine:v3.11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Alpine:v3.12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Alpine:v3.13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Alpine:v3.14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Alpine:v3.15(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Alpine:v3.16(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Debian:10(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | 6.0.3p1-5, 6.0.3p1-5+deb10u1, 6.0.3p1-5+deb10u2 |
| — |
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | — |
| — |
Debian:9(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| opensmtpd | 6.0.2p1-2, 6.0.2p1-2+deb9u1 |
| — |
Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(2)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 75× in last 7d / 354× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 1,459 total refreshes for this CVE.
- 2026-10-10 07:03 UTCVendor advisory
- 2026-10-10 07:02 UTCGHSA enrichment
- 2026-10-10 03:02 UTCVendor advisory
- 2026-10-10 03:02 UTCGHSA enrichment
- 2026-10-09 23:00 UTCVendor advisory
- 2026-10-09 23:00 UTCGHSA enrichment
- 2026-10-09 18:59 UTCVendor advisory
- 2026-10-09 18:59 UTCGHSA enrichment
- 2026-10-09 14:58 UTCVendor advisory
- 2026-10-09 14:58 UTCGHSA enrichment
- 2026-10-09 10:55 UTCVendor advisory
- 2026-10-09 10:55 UTCGHSA enrichment
- 2026-10-09 06:53 UTCVendor advisory
- 2026-10-09 06:53 UTCGHSA enrichment
- 2026-10-09 02:51 UTCVendor advisory
- 2026-10-09 02:51 UTCGHSA enrichment
- 2026-10-08 22:50 UTCGHSA enrichment
- 2026-10-08 18:49 UTCGHSA enrichment
- 2026-10-08 14:48 UTCGHSA enrichment
- 2026-10-08 10:43 UTCVendor advisory
- 2026-10-08 10:43 UTCGHSA enrichment
- 2026-10-08 06:42 UTCVendor advisory
- 2026-10-08 06:41 UTCGHSA enrichment
- 2026-10-08 02:40 UTCVendor advisory
- 2026-10-08 02:40 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-10-07 22:39 UTCGHSA enrichment
- 2026-10-07 18:37 UTCVendor advisory
- 2026-10-07 18:37 UTCGHSA enrichment
- 2026-10-07 14:35 UTCGHSA enrichment
- 2026-10-07 10:35 UTCVendor advisory
- 2026-10-07 10:34 UTCGHSA enrichment
- 2026-10-07 06:31 UTCVendor advisory
- 2026-10-07 06:31 UTCGHSA enrichment
- 2026-10-07 02:30 UTCVendor advisory
- 2026-10-07 02:30 UTCGHSA enrichment
- 2026-10-06 22:29 UTCVendor advisory
- 2026-10-06 22:29 UTCGHSA enrichment
- 2026-10-06 18:28 UTCVendor advisory
- 2026-10-06 18:28 UTCGHSA enrichment
- 2026-10-06 14:27 UTCVendor advisory
- 2026-10-06 14:27 UTCGHSA enrichment
- 2026-10-06 10:26 UTCVendor advisory
- 2026-10-06 10:26 UTCGHSA enrichment
- 2026-10-06 06:25 UTCVendor advisory
- 2026-10-06 06:25 UTCGHSA enrichment
- 2026-10-06 02:24 UTCVendor advisory
- 2026-10-06 02:24 UTCGHSA enrichment
- 2026-10-05 22:22 UTCGHSA enrichment
- 2026-10-05 18:19 UTCVendor advisory
- 2026-10-05 18:19 UTCGHSA enrichment
- 2026-10-05 14:18 UTCVendor advisory
- 2026-10-05 14:18 UTCGHSA enrichment
- 2026-10-05 10:17 UTCVendor advisory
- 2026-10-05 10:17 UTCGHSA enrichment
- 2026-10-05 06:17 UTCVendor advisory
- 2026-10-05 06:17 UTCGHSA enrichment
- 2026-10-05 02:16 UTCVendor advisory
- 2026-10-05 02:16 UTCGHSA enrichment
- 2026-10-04 22:15 UTCVendor advisory
- 2026-10-04 22:15 UTCGHSA enrichment
- 2026-10-04 18:14 UTCVendor advisory
- 2026-10-04 18:14 UTCGHSA enrichment
- 2026-10-04 14:12 UTCGHSA enrichment
- 2026-10-04 10:09 UTCVendor advisory
- 2026-10-04 10:09 UTCGHSA enrichment
- 2026-10-04 06:07 UTCVendor advisory
- 2026-10-04 06:07 UTCGHSA enrichment
- 2026-10-04 02:06 UTCVendor advisory
- 2026-10-04 02:06 UTCGHSA enrichment
- 2026-10-03 22:05 UTCVendor advisory
- 2026-10-03 22:05 UTCGHSA enrichment
- 2026-10-03 18:03 UTCVendor advisory
- 2026-10-03 18:03 UTCGHSA enrichment
- 2026-10-03 13:58 UTCGHSA enrichment
- 2026-10-03 09:56 UTCGHSA enrichment
- 2026-10-03 05:53 UTCVendor advisory
- 2026-10-03 05:53 UTCGHSA enrichment
- 2026-10-03 01:52 UTCVendor advisory
- 2026-10-03 01:52 UTCGHSA enrichment
- 2026-10-02 21:51 UTCVendor advisory
- 2026-10-02 21:51 UTCGHSA enrichment
- 2026-10-02 17:50 UTCVendor advisory
- 2026-10-02 17:50 UTCGHSA enrichment
- 2026-10-02 13:49 UTCVendor advisory
- 2026-10-02 13:49 UTCGHSA enrichment
- 2026-10-02 09:44 UTCVendor advisory
- 2026-10-02 09:44 UTCGHSA enrichment
- 2026-10-02 05:43 UTCVendor advisory
- 2026-10-02 05:43 UTCGHSA enrichment
- 2026-10-02 01:42 UTCGHSA enrichment
- 2026-10-01 21:40 UTCGHSA enrichment
- 2026-10-01 17:37 UTCGHSA enrichment
- 2026-10-01 13:34 UTCVendor advisory
- 2026-10-01 13:34 UTCGHSA enrichment
- 2026-10-01 09:34 UTCVendor advisory
- 2026-10-01 09:33 UTCGHSA enrichment
- 2026-10-01 05:32 UTCVendor advisory
- 2026-10-01 05:32 UTCGHSA enrichment
- 2026-10-01 01:31 UTCVendor advisory
- 2026-10-01 01:31 UTCGHSA enrichment
Publicly available exploits
(10 references)Working exploit code is in the public domain (1 Metasploit module) (6 GitHub PoCs) (3 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-48051✓ verifiedFirst seen Feb 11, 2020
OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Execution
Open source ↗ - Exploit-DBEDB-48038✓ verifiedFirst seen Feb 10, 2020
OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)
Open source ↗ - Exploit-DBEDB-47984✓ verifiedFirst seen Jan 30, 2020
OpenSMTPD 6.6.1 - Remote Code Execution
Open source ↗ - Metasploitexploit/unix/smtp/opensmtpd_mail_from_rce✓ verifiedFirst seen Jan 28, 2020
OpenSMTPD MAIL FROM Remote Code Execution
Open source ↗ - GitHub PoCpresentdaypresenttime/shai_huludFirst seen Feb 7, 2022
Worm written in python, abuses CVE-2020-7247
Open source ↗ - GitHub PoCSimonSchoeni/CVE-2020-7247-POCFirst seen Nov 26, 2021
Proof of concept for CVE-2020-7247 for educational purposes.
Open source ↗ - GitHub PoCf4T1H21/CVE-2020-7247First seen Jun 19, 2021
PoC exploit for CVE-2020-7247 OpenSMTPD 6.4.0 < 6.6.1 Remote Code Execution
Open source ↗ - GitHub PoCQTranspose/CVE-2020-7247-exploitFirst seen Feb 13, 2021
OpenSMTPD 6.4.0 - 6.6.1 Remote Code Execution PoC exploit
Open source ↗ - GitHub PoCr0lh/CVE-2020-7247First seen Feb 18, 2020
Proof Of Concept Exploit for CVE-2020-7247 (Remote Execution on OpenSMTPD < 6.6.2
Open source ↗ - GitHub PoCsuperzerosec/cve-2020-7247First seen Feb 17, 2020
OpenSMTPD version 6.6.2 remote code execution exploit
Open source ↗
Related CVEs(same product + same vendor + same CWE)
Same product
8 shownDebian:10:opensmtpd · Alpine:v3.11:opensmtpd · Debian:11:opensmtpd
Same CWE
10 shownCWE-78 · CWE-755
- CVE-2020-8438EG 7.2HIGH
- CVE-2020-8515EG 9.8 KEVEPSS p100CRITICAL
- CVE-2020-7980EG 9.8EPSS p100CRITICAL
- CVE-2020-7596EG 8.8HIGH
- CVE-2019-5593EG 5.5MEDIUM
- CVE-2020-7594EG 7.2HIGH
- CVE-2020-6760EG 9.8CRITICAL
- CVE-2020-8654NVD 8.8EG 9.0EPSS p100CRITICAL
- CVE-2020-7244EG 7.2EPSS p91HIGH
- CVE-2020-7243EG 7.2EPSS p91HIGH
Frequently asked(6)
What is CVE-2020-7247?
When was CVE-2020-7247 disclosed?
Is CVE-2020-7247 actively exploited?
What is the CVSS score of CVE-2020-7247?
Which products are affected by CVE-2020-7247?
How do I remediate CVE-2020-7247?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2020-7247
Is Your Infrastructure Affected by CVE-2020-7247?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.