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.8(high)
- EG Risk
- 99(Act)EG Risk 99/100SSVC: Act
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%Action: Fix now — active exploitation, automatable, high impact. - EPSS PROB
- 99%
- EPSS %ILE
- 100%
- KEV
- ⚠ Exploited
Published
January 29, 2020
Last Modified
November 7, 2025
Advisory Details (7)
Auto-updated Jun 1, 2026Bugtraq: [SECURITY] [DSA 4611-1] opensmtpd security update
https://seclists.org/bugtraq/2020/Jan/51[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/commit 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/49Patch Availability(2)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | opensmtpd (6.0.3p1-6ubuntu0.1) @ eoan | 2026-07-27 | ubuntu |
| ubuntu | opensmtpd (5.7.3p2-1ubuntu0.1~esm2) @ xenial | 2026-07-27 | 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.
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 46× in last 7d / 298× 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 603 total refreshes for this CVE.
- 2026-07-27 10:36 UTCGHSA enrichment
- 2026-07-27 06:32 UTCGHSA enrichment
- 2026-07-27 02:31 UTCVendor advisory
- 2026-07-27 02:31 UTCGHSA enrichment
- 2026-07-26 22:28 UTCVendor advisory
- 2026-07-26 22:28 UTCGHSA enrichment
- 2026-07-26 18:27 UTCGHSA enrichment
- 2026-07-26 14:24 UTCEG score recompute
- 2026-07-26 14:24 UTCVendor advisory
- 2026-07-26 14:24 UTCGHSA enrichment
- 2026-07-26 10:22 UTCVendor advisory
- 2026-07-26 10:22 UTCGHSA enrichment
- 2026-07-26 06:20 UTCGHSA enrichment
- 2026-07-26 02:19 UTCEG score recompute
- 2026-07-26 02:19 UTCVendor advisory
- 2026-07-26 02:19 UTCGHSA enrichment
- 2026-07-25 14:15 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 01:54 UTCEG score recompute
- 2026-07-22 22:41 UTCEG score recompute
- 2026-07-22 20:32 UTCVendor advisory
- 2026-07-22 20:32 UTCGHSA enrichment
- 2026-07-22 19:40 UTCCISA KEV update
- 2026-07-22 16:30 UTCVendor advisory
- 2026-07-22 16:30 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-07-22 12:29 UTCGHSA enrichment
- 2026-07-22 08:27 UTCGHSA enrichment
- 2026-07-22 04:25 UTCVendor advisory
- 2026-07-22 04:25 UTCGHSA enrichment
- 2026-07-22 00:22 UTCGHSA enrichment
- 2026-07-21 19:02 UTCEG score recompute
- 2026-07-21 19:01 UTCGHSA enrichment
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 14:59 UTCGHSA enrichment
- 2026-07-21 14:37 UTCCISA KEV update
- 2026-07-21 10:58 UTCVendor advisory
- 2026-07-21 10:58 UTCGHSA enrichment
- 2026-07-21 06:56 UTCGHSA enrichment
- 2026-07-21 02:55 UTCVendor advisory
- 2026-07-21 02:55 UTCGHSA enrichment
- 2026-07-20 22:54 UTCVendor advisory
- 2026-07-20 22:54 UTCGHSA enrichment
- 2026-07-20 18:53 UTCVendor advisory
- 2026-07-20 18:53 UTCGHSA enrichment
- 2026-07-20 14:52 UTCGHSA enrichment
- 2026-07-20 10:50 UTCVendor advisory
- 2026-07-20 10:50 UTCGHSA enrichment
- 2026-07-20 06:49 UTCVendor advisory
- 2026-07-20 06:48 UTCGHSA enrichment
- 2026-07-20 02:08 UTCVendor advisory
- 2026-07-20 02:08 UTCGHSA enrichment
- 2026-07-19 22:06 UTCVendor advisory
- 2026-07-19 22:06 UTCGHSA enrichment
- 2026-07-19 18:05 UTCVendor advisory
- 2026-07-19 18:05 UTCGHSA enrichment
- 2026-07-19 14:04 UTCVendor advisory
- 2026-07-19 14:04 UTCGHSA enrichment
- 2026-07-19 10:03 UTCVendor advisory
- 2026-07-19 10:03 UTCGHSA enrichment
- 2026-07-19 06:02 UTCVendor advisory
- 2026-07-19 06:02 UTCGHSA enrichment
- 2026-07-19 02:00 UTCVendor advisory
- 2026-07-19 02:00 UTCGHSA enrichment
- 2026-07-18 21:59 UTCVendor advisory
- 2026-07-18 21:59 UTCGHSA enrichment
- 2026-07-18 17:58 UTCVendor advisory
- 2026-07-18 17:58 UTCGHSA enrichment
- 2026-07-18 13:57 UTCVendor advisory
- 2026-07-18 13:57 UTCGHSA enrichment
- 2026-07-18 09:56 UTCVendor advisory
- 2026-07-18 09:56 UTCGHSA enrichment
- 2026-07-18 05:55 UTCVendor advisory
- 2026-07-18 05:55 UTCGHSA enrichment
- 2026-07-18 01:53 UTCVendor advisory
- 2026-07-18 01:53 UTCGHSA enrichment
- 2026-07-17 21:52 UTCVendor advisory
- 2026-07-17 21:52 UTCGHSA enrichment
- 2026-07-17 17:51 UTCGHSA enrichment
- 2026-07-17 13:49 UTCGHSA enrichment
- 2026-07-17 09:48 UTCEG score recompute
- 2026-07-17 09:48 UTCGHSA enrichment
- 2026-07-17 05:47 UTCGHSA enrichment
- 2026-07-17 01:45 UTCGHSA enrichment
- 2026-07-16 21:44 UTCVendor advisory
- 2026-07-16 21:44 UTCGHSA enrichment
- 2026-07-16 17:43 UTCVendor advisory
- 2026-07-16 17:43 UTCGHSA enrichment
- 2026-07-16 17:04 UTCCISA KEV update
- 2026-07-16 13:41 UTCGHSA enrichment
- 2026-07-16 09:40 UTCVendor advisory
- 2026-07-16 09:40 UTCGHSA enrichment
- 2026-07-16 05:39 UTCVendor advisory
- 2026-07-16 05:39 UTCGHSA enrichment
- 2026-07-16 01:38 UTCVendor advisory
- 2026-07-16 01:38 UTCGHSA enrichment
- 2026-07-15 21:37 UTCVendor advisory
- 2026-07-15 21:37 UTCGHSA enrichment
- 2026-07-15 17:35 UTCVendor advisory
- 2026-07-15 17:35 UTCGHSA enrichment
Publicly available exploits
(10 references)Working exploit code is in the public domain (7 GitHub PoCs) (3 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- 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 ↗ - 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 ↗ - GitHub PoCFiroSolutions/cve-2020-7247-exploitFirst seen Jan 30, 2020
Python exploit of cve-2020-7247
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownubuntu
- CVE-2004-0989EG 10.0EPSS p97HIGH
- CVE-2004-0990EG 10.0EPSS p98HIGH
- CVE-2004-1010EG 10.0EPSS p95HIGH
- CVE-2004-0941EG 10.0EPSS p95HIGH
- CVE-2004-0981EG 10.0EPSS p92HIGH
- CVE-2004-0882EG 10.0EPSS p96HIGH
- CVE-2004-0888EG 10.0EPSS p95HIGH
- CVE-2004-1012EG 10.0EPSS p93HIGH
- CVE-2004-1013EG 10.0EPSS p92HIGH
- CVE-2004-1018EG 10.0EPSS p97HIGH
Same CWE
10 shownCWE-78
- CVE-2009-20011EG 10.0CRITICAL
- CVE-2011-10017EG 10.0CRITICAL
- CVE-2011-4502EG 10.0EPSS p92HIGH
- CVE-2011-2148EG 10.0EPSS p92HIGH
- CVE-2011-0382EG 10.0EPSS p90HIGH
- CVE-2011-0381EG 10.0EPSS p92HIGH
- CVE-2011-0372EG 10.0HIGH
- CVE-2011-0271EG 10.0EPSS p94HIGH
- CVE-2010-3757EG 10.0EPSS p90HIGH
- CVE-2010-3754EG 10.0EPSS 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
Explore the affected products and dependency analysis for 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.