OpenSMTPD before 6.6.4 allows remote code execution because of an out-of-bounds read in mta_io in mta_session.c for multi-line replies. Although this vulnerability affects the client side of OpenSMTPD, it is possible to attack a server because the server code launches the client code during bounce handling.
CVE-2020-8794
Score 9.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-24. NVD baseline CVSS 9.8; sources differ by 0.0.
- High exploitation likelihood — EPSS 89%
- Public exploit code is available (Metasploit, Exploit-DB (verified), epss top5pct, epss high, public exploit)
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EG Risk
- 84(Track*)EG Risk 84/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation89% × 40%Automatability30% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 89%
- EPSS %ILE
- 100%
- KEV
- Not listed
Published
February 25, 2020
Last Modified
November 21, 2024
Advisory Details (9)
Auto-updated Aug 15, 2026[SECURITY] [DSA 4634-1] opensmtpd security update
https://www.debian.org/security/2020/dsa-4634[SECURITY] Fedora 32 Update: opensmtpd-6.6.4p1-2.fc32 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/oss-security - 21Nails: Multiple vulnerabilities in Exim
http://www.openwall.com/lists/oss-security/2021/05/04/7oss-security - Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)
http://www.openwall.com/lists/oss-security/2020/03/01/2oss-security - Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)
http://www.openwall.com/lists/oss-security/2020/03/01/1oss-security - Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)
http://www.openwall.com/lists/oss-security/2020/02/26/1Full Disclosure: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794)
http://seclists.org/fulldisclosure/2020/Feb/32Packet Storm Security
http://packetstormsecurity.com/files/156633/OpenSMTPD-Out-Of-Bounds-Read-Local-Privilege-Escalation.htmlPatch Availability(2)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | opensmtpd (6.0.3p1-6ubuntu0.2) @ eoan | 2026-05-27 | ubuntu |
| ubuntu | opensmtpd (5.7.3p2-1ubuntu0.1~esm2) @ xenial | 2026-05-27 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(6 across 6 ecosystems)
Debian:10(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensmtpd | 6.0.3p1-5, 6.0.3p1-5+deb10u1, 6.0.3p1-5+deb10u2, 6.0.3p1-5+deb10u3 | 6.0.3p1-5+deb10u4 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensmtpd | — | 6.6.4p1-1 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensmtpd | — | 6.6.4p1-1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensmtpd | — | 6.6.4p1-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensmtpd | — | 6.6.4p1-1 | — |
Debian:9(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensmtpd | 6.0.2p1-2, 6.0.2p1-2+deb9u1, 6.0.2p1-2+deb9u2 | 6.0.2p1-2+deb9u3 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(2)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 5× in last 7d / 13× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-21 04:14 UTCOSV refresh
- 2026-08-19 17:00 UTCEPSS rescore
- 2026-08-17 13:43 UTCEPSS rescore
- 2026-08-17 13:43 UTCEPSS rescore
- 2026-08-16 14:52 UTCEPSS rescore
- 2026-08-13 21:57 UTCEPSS rescore
- 2026-08-08 16:33 UTCEPSS rescore
- 2026-08-07 16:23 UTCEPSS rescore
- 2026-08-05 19:40 UTCOSV refresh
- 2026-07-30 01:27 UTCEPSS rescore
- 2026-07-25 14:15 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 01:55 UTCEG score recompute
- 2026-07-22 22:41 UTCEG score recompute
- 2026-07-22 14:05 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-19 18:48 UTCOSV refresh
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-02 08:17 UTCOSV refresh
- 2026-07-01 15:03 UTCEPSS rescore
Show 33 moreShow fewer
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-14 08:13 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 07:17 UTCEG score recompute
- 2026-05-27 07:17 UTCVendor advisory
- 2026-05-27 07:17 UTCGHSA enrichment
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 08:16 UTCOSV refresh
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
Publicly available exploits
(3 references)Working exploit code is in the public domain (1 Metasploit module) (2 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-48185✓ verifiedFirst seen Mar 9, 2020
OpenSMTPD - OOB Read Local Privilege Escalation (Metasploit)
Open source ↗ - Exploit-DBEDB-48140First seen Feb 26, 2020
OpenSMTPD < 6.6.3p1 - Local Privilege Escalation + Remote Code Execution
Open source ↗ - Metasploitexploit/unix/local/opensmtpd_oob_read_lpe✓ verifiedFirst seen Feb 24, 2020
OpenSMTPD OOB Read Local Privilege Escalation
Open source ↗
Frequently asked(5)
What is CVE-2020-8794?
When was CVE-2020-8794 disclosed?
Is CVE-2020-8794 actively exploited?
What is the CVSS score of CVE-2020-8794?
How do I remediate CVE-2020-8794?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2020-8794
Is Your Infrastructure Affected by CVE-2020-8794?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.