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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2022-03-25. Apply updates per vendor instructions.
- Likelihood of exploitation in the next 30 days (EPSS): 99.0%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 7 links below, marked "exploit"
- Published: 2020-01-29T15:53:18.000Z
- Modified: 2026-06-17T03:24:35.133Z
- Weaknesses: CWE-78, CWE-755
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openbsd opensmtpd: 6.6
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 32
- canonical ubuntu_linux: 18.04; 19.10

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <http://www.openwall.com/lists/oss-security/2020/01/28/3> (exploit, mailing-list, third-party-advisory)
- <http://packetstormsecurity.com/files/156137/OpenBSD-OpenSMTPD-Privilege-Escalation-Code-Execution.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html> (exploit, third-party-advisory, vdb-entry)
- <http://seclists.org/fulldisclosure/2020/Jan/49> (exploit, mailing-list, third-party-advisory)
- <http://packetstormsecurity.com/files/156249/OpenSMTPD-MAIL-FROM-Remote-Code-Execution.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/156295/OpenSMTPD-6.6.1-Local-Privilege-Escalation.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/162093/OpenBSD-OpenSMTPD-6.6-Remote-Code-Execution.html> (exploit, broken-link, third-party-advisory, vdb-entry)
- <https://www.openbsd.org/security.html> (patch, vendor-advisory)
- <https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45> (patch)
- <https://seclists.org/bugtraq/2020/Jan/51> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4611> (mailing-list, third-party-advisory, vendor-advisory)
- <https://www.kb.cert.org/vuls/id/390745> (third-party-advisory, us-government-resource)
- <https://usn.ubuntu.com/4268-1/> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247> (government-resource, us-government-resource)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7247> (kev)

## Sources

- CVE List: [CVE-2020-7247](https://www.cve.org/CVERecord?id=CVE-2020-7247), CVE Terms of Use, modified 2025-10-21
- NVD: [CVE-2020-7247](https://nvd.nist.gov/vuln/detail/CVE-2020-7247), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2020-7247](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2020-7247), CC0-1.0, modified 2022-03-25

---

Page: https://cve.day/CVE-2020-7247 · Whole record: https://cve.day/CVE-2020-7247.json · Rebuilt by cve.day 2026-11-25T22:57:50.713Z
