Skip to content
skopnix

CVE-2020-7247 · Published 29 Jan 2020

OpenBSD OpenSMTPD

On CISA's KEV list 786 days after disclosure; 13 public exploits.

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.

CISA required action (federal due date 15 Apr 2022): Apply updates per vendor instructions.

Signals

KEV, exploited in the wild
yes, added 25 Mar 2022, due 15 Apr 2022
EPSS, 30-day forecast
99%, 100th percentile (as of 18 Nov 2026)
CVSS, NVD
not stated
Internet exposure
not stated

KEV is an observation, EPSS a forecast; KEV outranks it. No score published by NVD.

Timeline 29 Jan 2020 to today

785 days from the first proof of concept to the KEV listing
20212023202420252026Metasploit 29 Jan 2020Disclosed 29 Jan 2020First PoC 30 Jan 2020KEV 25 Mar 2022today
  1. Metasploit
  2. Disclosedsame day
  3. First PoC+1 d
  4. KEV+785 d

785 days from the first proof of concept to the KEV listing

Indicators none tied yet

No threat feed has tied an indicator to this CVE yet. Checked every six hours.

On the wire 0 dispatches

No dispatch on our wire has named this CVE yet.

Public exploit code 13 known · links only

GitHub PoCs 9Metasploit 1Exploit-DB 3

GitHub PoCs, by trust then stars9

  1. first seen by skopnix 18 Oct 2026

  2. first seen by skopnix 18 Oct 2026

  3. first seen by skopnix 18 Oct 2026

  4. first seen by skopnix 18 Oct 2026

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

  7. first seen by skopnix 18 Oct 2026

  8. first seen by skopnix 18 Oct 2026

Show 1 more
  1. first seen by skopnix 18 Oct 2026

Fake proof-of-concept repositories have been used to deliver malware to the researchers who run them. The trust verdict is our engine's heuristic over the repository (account age, what it ships, how its stars arrived); it is a reason to read the code first, not a finding about its author.

Metasploit1

  1. This module exploits a command injection in the MAIL FROM field during SMTP interaction with OpenSMTPD to execute a command as the root user.

    ruby · first seen by skopnix 18 Oct 2026

Exploit-DB3

  1. created 30 Jan 2020

  2. created 10 Feb 2020

  3. created 11 Feb 2020

Nuclei detection templates1

  1. OpenSMTPD versions 6.4.0 - 6.6.1 are susceptible to remote code execution. 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.

    yaml · first seen by skopnix 18 Oct 2026

A Nuclei template is a scanner check that detects the flaw. It is not an exploit and is not counted as one.

References

Watch this one?

KEV additions reach Telegram and the KEV-only RSS as they land.

Telegram ↗KEV RSSAPIStack check