CVE-2020-7247
OpenSMTPD Remote Code Execution Vulnerability
- Published
- Jan 29, 2020
- Updated
- Oct 21, 2025
- Assigning CNA
- mitre
- Evidence observed
- Jan 30, 2020
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.9%
- Model date
- Oct 16, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
CISA Known Exploited
This CVE appears in the CISA Known Exploited Vulnerabilities catalog.
Summary
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.
Sources
opensmtpd/CVE-2020-7247
OpenSMTPD Remote Code Execution Vulnerability (CVE-2020-7247)
Vulhub vulnerability labsDeclared conditions
- lab image version: vulhub/opensmtpd:6.6.1p1(opensmtpd/CVE-2020-7247/docker-compose.yml:services.smtpd.image)
modules/exploits/unix/smtp/opensmtpd_mail_from_rce.rb
Metasploit Framework modulesDeclared conditions
- platform: Unix($.exploit_unix/smtp/opensmtpd_mail_from_rce.platform)
- verification: check_declared($.exploit_unix/smtp/opensmtpd_mail_from_rce.check)
javascript/cves/2020/CVE-2020-7247.yaml
Nuclei TemplatesDeclared conditions
- verification: dsl,word($.matchers[*].type)
- oob: interactsh_reference($.template_text)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.