Remote code executionin OpenBSD OpenSMTPD.
On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 25 Mar 2022.
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.
- CISA requires US federal agencies to fix it by 15 Apr 2022.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 20 Jan 2020CVE ID reserved by mitre.
- 28 Jan 2020Metasploit module: OpenSMTPD MAIL FROM Remote Code Execution.
- 29 Jan 2020Published in the CVE List.
- 30 Jan 2020First public proof of concept on GitHub.
- 25 Mar 2022Added to CISA's Known Exploited Vulnerabilities list.
- 21 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
10 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Same weakness: Improper handling of exceptional conditions
- www.openbsd.org x_refsource_CONFIRM
- www.openwall.com x_refsource_MISC
- github.com x_refsource_CONFIRM
- packetstormsecurity.com x_refsource_MISC
- seclists.org mailing-list, x_refsource_BUGTRAQ
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- packetstormsecurity.com x_refsource_MISC
- www.kb.cert.org third-party-advisory, x_refsource_CERT-VN
- seclists.org mailing-list, x_refsource_FULLDISC
- packetstormsecurity.com x_refsource_MISC
- packetstormsecurity.com x_refsource_MISC
- usn.ubuntu.com vendor-advisory, x_refsource_UBUNTU
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- packetstormsecurity.com x_refsource_MISC
- www.cisa.gov government-resource
Patchminder. CVE-2020-7247: Remote code execution in OpenBSD OpenSMTPD. https://patchminder.com/cve/cve-2020-7247/ (accessed 5 December 2026).