CVE-2020-7247
highpriority · act · 90OT risk · criticalKEV · exploitedEPSS 0.990 · 100 %ileexploit · weaponizedEURUUSadded 2022-03-25remediate by 2022-04-15
required action Apply updates per vendor instructions.
EPSS · scored 2026-10-23
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 9.8–10
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (15)
Public proof-of-concept and weaponised exploit code.
- exploit/unix/smtp/opensmtpd_mail_from_rceOpenSMTPD MAIL FROM Remote Code Executionweaponized · metasploit
- EDB-47984OpenSMTPD 6.6.1 - Remote Code Executionfunctional · exploit_db
- EDB-48038OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)functional · exploit_db
- EDB-48051OpenSMTPD 6.4.0 < 6.6.1 - Local Privilege Escalation + Remote Code Executionfunctional · exploit_db
- FiroSolutions/cve-2020-7247-exploitPython exploit of cve-2020-7247PoC · poc_in_github
affected products (10)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (47)
External citations — patches, advisories, analysis.
- http://seclists.org/fulldisclosure/2020/Jan/49cnnvd
- http://www.openwall.com/lists/oss-security/2020/01/28/3cnnvd
- https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-7247cnnvd
- https://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.htmlcnnvd
- https://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.htmlcnnvd
- https://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan