# CVE-2020-7247: OpenSMTPD Remote Code Execution Vulnerability

- Priority: **Act now**
- Reason: Listed as exploited by CISA (25-03-2022)
- Next step: Check the vendor advisory
- Status: published
- Published: 2020-01-29 · Modified: 2025-10-21
- Aliases: ALPINE-CVE-2020-7247, UBUNTU-CVE-2020-7247, USN-4268-1, DEBIAN-CVE-2020-7247, DSA-4611-1
- Record: https://cvemate.com/vulnerability/CVE-2020-7247 · JSON: https://cvemate.com/vulnerability/CVE-2020-7247/json

## Description

```text
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.
```

## Signals

- CVSS: 10 high (v2.0, NVD) AV:N/AC:L/Au:N/C:C/I:C/A:C
- EPSS: 98.972%, percentile 99.929%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2022-03-25, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 10 (reference, exploit-database, metasploit)

## Affected

- alpine opensmtpd (Alpine Linux): \< 6.6.2p1-r0 \| \< 6.6.2\_p1-r0
- canonical ubuntu\_linux: 18.04 \| 19.10
- debian opensmtpd (Debian): \< 6.6.2p1-1 \| \< 6.0.2p1-2+deb9u2 \| \< 6.0.3p1-5+deb10u3
- ubuntu opensmtpd (Ubuntu): \< 5.4.1p1-1ubuntu0.1~esm1 \| \< 5.7.3p2-1ubuntu0.1~esm1 \| \< 6.0.3p1-1ubuntu0.1
- debian debian\_linux: 9.0 \| 10.0
- fedoraproject fedora: 32
- openbsd opensmtpd: 6.6

## References (first 20 of 25)

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

---

Data as of 2026-12-05T03:16:24.674Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
