OpenBSD OpenSMTPD
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.
Timeline
Days relative to CVE publicationFirst public PoC 5 h before publication; added to CISA KEV 2.2 years after publication. First PoC: Metasploit exploit: OpenSMTPD MAIL FROM Remote Code Execution (exploit/unix/smtp/opensmtpd_mail_from_rce) (Metasploit, 29 Jan 2020).
PoC repositories
Found on GitHub.11 PoCs · 3 pending · 1 suspicious or fake
PoCs 11
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| FiroSolutions/cve-2020-7247-exploit | 30 Jan 2020 +1.2 d | 25 | PoC |
| superzerosec/cve-2020-7247 | 17 Feb 2020 +18 d | 4 | PoC |
| r0lh/CVE-2020-7247 | 18 Feb 2020 +20 d | 5 | PoC |
| G01d3nW01f/SMTPython | 2 Feb 2021 +1.0 y | 0 | PoC |
| Ki11i0n4ir3/SMTPython | 2 Feb 2021 +1.0 y | 0 | PoC |
| QTranspose/CVE-2020-7247-exploit | 13 Feb 2021 +1.0 y | 11 | PoC |
| bytescrappers/CVE-2020-7247 | 2 Jun 2021 +1.3 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| f4T1H21/CVE-2020-7247 | 19 Jun 2021 +1.4 y | 2 | PoC |
| SimonSchoeni/CVE-2020-7247-POC | 26 Nov 2021 +1.8 y | 2 | PoC |
| minhluannguyen/CVE-2020-7247-reproducer | 20 Mar 2025 +5.1 y | 0 | PoC |
| solmin111/OpenSMTPD-CVE-2020-7247- | 28 Jun 2026 +6.4 y | 0 | PoC |
Pending 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| presentdaypresenttime/shai_hulud | 7 Feb 2022 +2.0 y | 2 | Pending |
| CyberCTF/vulhub-opensmtpd-cve-2020-7247 | 8 Oct 2026 +6.7 y | 0 | Pending
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| gatariee/CVE-2020-7247 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| SrMeirins/HackingVault | 5 Feb 2025 +5.0 y | 3 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | OpenSMTPD 6.6.1 - Remote Code Execution | 30 Jan 2020 | 14 Nov 2026 |
| Exploit-DB | OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit) | 10 Feb 2020 | 14 Nov 2026 |
| Exploit-DB | OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Execution | 11 Feb 2020 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: OpenSMTPD MAIL FROM Remote Code Execution (exploit/unix/smtp/opensmtpd_mail_from_rce) | 29 Jan 2020 | 14 Nov 2026 |
| nuclei template | nuclei template: OpenSMTPD 6.4.0-6.6.1 - Remote Code Execution | 27 Mar 2024 | 14 Nov 2026 |