# CVE-2020-7247

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.

- Page: https://www.vulneraibility.com/cve/CVE-2020-7247
- CVSS: 9.8
- Known exploited: yes, in CISA KEV since 2022-03-25; CISA due date 2022-04-15
- EPSS: 98.97% (percentile 99.9)
- Public exploit code: 3 on Exploit-DB · 1 Metasploit module · 11 GitHub proofs of concept · 1 Nuclei template (first 2020-01-30)
- CISA SSVC: exploitation active, automatable yes, technical impact total (assessed 2025-02-04)
- Weakness: CWE-755
- Published: 2020-01-29

## Affected

- openbsd:opensmtpd
- debian:debian_linux
- fedoraproject:fedora
- canonical:ubuntu_linux

## References

- [other] https://www.openbsd.org/security.html
- [other] http://www.openwall.com/lists/oss-security/2020/01/28/3
- [other] https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45
- [other] http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html
- [other] https://seclists.org/bugtraq/2020/Jan/51
- [advisory] https://www.debian.org/security/2020/dsa-4611
- [other] http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
- [advisory] https://www.kb.cert.org/vuls/id/390745
- [other] http://seclists.org/fulldisclosure/2020/Jan/49
- [other] http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html
- [other] http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html
- [advisory] https://usn.ubuntu.com/4268-1/
- [advisory] https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/
- [other] http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
