Skip to main content
CVE Radar
CISA KEVcriticalRemote Code Execpublic exploit

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

Affects

OpenBSD

OpenSMTPD

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.

CISA

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

fixed0affected0not affected1

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.

Affected vendors, products and versions
VendorProductVersionsStatus
OpenBSDOpenSMTPDn/aVulnerable

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.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
9.8CVSS 3.1critical3.95.9NVD, CNA, GHSA
10.0CVSS 2.0high1010NVD
8.8CVSS 3.1highn/an/aRed 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.

MITRE

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.

CAPEC-15 · Command DelimitersCAPEC-88 · OS Command InjectionCAPEC-43 · Exploiting Multiple Input Interpretation LayersCAPEC-108 · Command Line Execution through SQL InjectionCAPEC-6 · Argument Injection

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.
web/proxy/WAF logsapplication logsnetwork IDS/IPSEDR process telemetryhost service logs

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.

KinsingTeamTNT
  • 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.

  1. 2026
  2. Added · CVSS 3.1 9.8 (AV:N)

    Jun 17, 2026 · NVD

  3. 2025
  4. Bulletin released on Mitre.

    Jul 28, 2025 · SOCRadar CTI

  5. 2024
  6. Bulletin released on NIST.

    Jul 16, 2024 · SOCRadar CTI

  7. 2023
  8. CVE is exploited. "Ostorlab/KEV"

    Dec 26, 2023 · SOCRadar CTI

  9. CVE is exploited. "HimmelAward/Goby_POC"

    Dec 14, 2023 · SOCRadar CTI

  10. CVE is exploited. "G01d3nW01f/SMTPython"

    Dec 14, 2023 · SOCRadar CTI

  11. CVE is exploited. "Ostorlab/known_exploited_vulnerbilities_detectors"

    Dec 14, 2023 · SOCRadar CTI

  12. CVE is exploited. "QTranspose/CVE-2020-7247-exploit"

    Dec 14, 2023 · SOCRadar CTI

  13. CVE is exploited. "SimonSchoeni/CVE-2020-7247-POC"

    Dec 14, 2023 · SOCRadar CTI

  14. CVE is exploited. "Threekiii/Awesome-Exploit"

    Dec 14, 2023 · SOCRadar CTI

  15. CVE is exploited. "bcoles/local-exploits"

    Dec 14, 2023 · SOCRadar CTI

  16. CVE is exploited. "developer3000S/PoC-in-GitHub"

    Dec 14, 2023 · SOCRadar CTI

  17. CVE is exploited. "f4T1H21/CVE-2020-7247"

    Dec 14, 2023 · SOCRadar CTI

  18. CVE is exploited. "hectorgie/PoC-in-GitHub"

    Dec 14, 2023 · SOCRadar CTI

  19. CVE is exploited. "nomi-sec/PoC-in-GitHub"

    Dec 14, 2023 · SOCRadar CTI

  20. CVE is exploited. "r0lh/CVE-2020-7247"

    Dec 14, 2023 · SOCRadar CTI

  21. CVE is exploited. "soosmile/POC"

    Dec 14, 2023 · SOCRadar CTI

  22. CVE is exploited. "superzerosec/cve-2020-7247"

    Dec 14, 2023 · SOCRadar CTI

  23. CVE is exploited. "superzerosec/poc-exploit-index"

    Dec 14, 2023 · SOCRadar CTI

  24. 2022
  25. Added · GHSA-rcw6-69h3-89fh published (high)

    May 24, 2022 · GitHub Security Advisory

  26. Added to CISA KEV catalog

    Mar 25, 2022 · CISA

  27. 2020
  28. Added · Verified remote entry: OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation (LPE) / Remote Code Execution (RCE)

    Feb 11, 2020 · Exploit-DB

  29. Added · Verified remote entry: OpenSMTPD - MAIL FROM Remote Code Execution (RCE) (Metasploit)

    Feb 10, 2020 · Exploit-DB

  30. Added · Verified remote entry: OpenSMTPD 6.6.1 - Remote Code Execution (RCE)

    Jan 30, 2020 · Exploit-DB

  31. 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

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

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.