CVE-2020-7247
CVE-2020-7247 — OpenSMTPD Remote Code Execution Vulnerability
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.
Published Updated Sources: NVD, OpenBSD (CNA), CISA, FIRST EPSS, GitHub, GitHub Security Advisory, Exploit-DB, Red Hat (VEX), SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Confirmed
CISA KEV, listed Mar 25, 2022
EPSS
99%
top of FIRST's scoreset
CVSS base
9.8
critical · 3 sources
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
Active
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade OpenSMTPD to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
CISA required action
Apply updates per vendor instructions.
Federal deadline Apr 15, 2022 — passed 1,694 days ago
Red Hat VEX · CVE-2020-7247
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Treat as emergency remediation because CISA KEV status is present.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| OpenBSD | OpenSMTPD | n/a | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
High
Confidentiality
High
Integrity
High
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | critical | 3.9 | 5.9 | NVD, CNA, GHSA |
| 10.0 | CVSS 2.0 | high | 10 | 10 | NVD |
| 8.8 | CVSS 3.1 | high | n/a | n/a | Red Hat (VEX) |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-755 · Improper Handling of Exceptional Conditions
- Other::
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Execute Unauthorized Code or Commands
- DoS: Crash, Exit, or Restart
- Read Files or Directories
- Modify Files or Directories
Mitigation: If at all possible, use library calls rather than external processes to recreate the desired functionality.
Weakness & attack patterns
- CWE-755
- CWE-78OS Command Injection
- CWE-252
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
CISA KEV details
CISA lists a CVE here once it has evidence of exploitation against real targets.
Listed
Mar 25, 2022
Federal deadline
Apr 15, 2022
passed 1,694 days ago
Ransomware use
Unknown
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a date to argue against.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
68
3 of the 5 sampled are weaponized
Exploit entries
28
Exploit-DB and CTI exploit indexes
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable OpenSMTPD.
- Monitor for scanner or exploit-pattern traffic after 96 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
- ip109.233.89.13849
SOCRadar Internet Wide-Scanner · Mar 3, 2025
- hostnamejmdi.pl
SOCRadar Internet Wide-Scanner · Mar 3, 2025
- hostnamesoftether.jmdi.pl
SOCRadar Attack Surface Intelligence(ASI) · Oct 23, 2026
- hostnamehost-109-233-89-138.jmdi.pl
SOCRadar Attack Surface Intelligence(ASI) · Oct 23, 2026
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 9.8 (AV:N)
Jun 17, 2026 · NVD
- 2025
Bulletin released on Mitre.
Jul 28, 2025 · SOCRadar CTI
- 2024
Bulletin released on NIST.
Jul 16, 2024 · SOCRadar CTI
- 2023
CVE is exploited. "Ostorlab/KEV"
Dec 26, 2023 · SOCRadar CTI
CVE is exploited. "HimmelAward/Goby_POC"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "G01d3nW01f/SMTPython"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "Ostorlab/known_exploited_vulnerbilities_detectors"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "QTranspose/CVE-2020-7247-exploit"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "SimonSchoeni/CVE-2020-7247-POC"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "Threekiii/Awesome-Exploit"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "bcoles/local-exploits"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "developer3000S/PoC-in-GitHub"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "f4T1H21/CVE-2020-7247"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "hectorgie/PoC-in-GitHub"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "nomi-sec/PoC-in-GitHub"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "r0lh/CVE-2020-7247"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "soosmile/POC"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "superzerosec/cve-2020-7247"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "superzerosec/poc-exploit-index"
Dec 14, 2023 · SOCRadar CTI
- 2022
Added · GHSA-rcw6-69h3-89fh published (high)
May 24, 2022 · GitHub Security Advisory
Added to CISA KEV catalog
Mar 25, 2022 · CISA
- 2020
Added · Verified remote entry: OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation (LPE) / Remote Code Execution (RCE)
Feb 11, 2020 · Exploit-DB
Added · Verified remote entry: OpenSMTPD - MAIL FROM Remote Code Execution (RCE) (Metasploit)
Feb 10, 2020 · Exploit-DB
Added · Verified remote entry: OpenSMTPD 6.6.1 - Remote Code Execution (RCE)
Jan 30, 2020 · Exploit-DB
Initial · CVE published
Jan 29, 2020 · NVD
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 4×Github ReposJan 26, 2024 – Oct 8, 2026 · SOCRadar CTI
- 3×SVRS was changedMar 28, 2025 – Apr 8, 2025 · SOCRadar CTI
- 3×ModifiedJul 16, 2024 – Apr 4, 2025 · SOCRadar CTI
- 1×Tweets · 1 times tweetedJan 16, 2024 · SOCRadar CTI
References
23 on the record
- packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry, NIST
- packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry, NIST
- packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry, NIST
- packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
Exploit, Third Party Advisory, VDB Entry, NIST
- packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
Broken Link, Third Party Advisory, VDB Entry, NIST
- seclists.org/fulldisclosure/2020/Jan/49
Exploit, Mailing List, Third Party Advisory, Mitre, NIST
- www.openwall.com/lists/oss-security/2020/01/28/3
Exploit, Mailing List, Third Party Advisory, NIST
- github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
Patch, NIST
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-105134 Ahsay AhsayCBS Replication Receiver UpdateReceivers.do os command injectionCVSS 10.0 · CISA KEV
- CVE-2026-49869 Kestra: Unauthenticated Remote Code Execution via Authentication Bypass in `AuthenticationFilter`CVSS 10.0 · CISA KEV
- CVE-2026-16812 VeloCloud Orchestrator OS Command InjectionCVSS 10.0 · CISA KEV
- CVE-2026-10520 Ivanti Sentry OS Command Injection VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2014-6278 GNU Bash OS Command Injection VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-133323 Mitel MiCollab OS Command Injection VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- OpenBSDevery CVE for this vendor
- OpenSMTPDevery page on this product
- March 2022what else CISA listed
- Remote Code Execsame class
- CWE-755other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- Only the 4 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2020-7247 is OpenSMTPD Remote Code Execution Vulnerability, a critical vulnerability affecting OpenSMTPD from OpenBSD. The current evidence lists it in CISA KEV, and the exploit status is: Yes: CISA KEV signal present. Public exploit evidence is: 96 public PoC repositories reported; 3 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 9.8 describes technical severity, while EPSS 99% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.
