CVE-2020-8794OpenSMTPD 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.…
- 9.8CriticalCVSS base score
- 88.9%Exploitation in 30 daysEPSS · top 0.2% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and 2 Exploit-DB entries for it.
Show the exploits3
Metasploit modules1 module
- OpenSMTPD OOB Read Local Privilege Escalation (Metasploit module) (opens in a new tab)
exploit/unix/local/opensmtpd_oob_read_lpeRank averagedisclosed 24 Feb 2020
Exploit-DB2 entries
- OpenSMTPD - OOB Read Local Privilege Escalation (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 48185local, linuxpublished 9 Mar 2020Verified
- OpenSMTPD < 6.6.3p1 - Local Privilege Escalation + Remote Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 48140remote, openbsdpublished 26 Feb 2020Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 18 days later
· 18 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 88.9% · top 0.2% of all CVEs (15 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
n/a
- affected n/a
References
References11
- https://www.openbsd.org/security.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.openwall.com/lists/oss-security/2020/02/24/5 (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20200226 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- DSA-4634 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 20200227 LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) (opens in a new tab)mailing-listx_refsource_FULLDISCx_transferred
- [oss-security] 20200301 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20200301 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/156633/OpenSMTPD-Out-Of-Bounds-Read-Local-Privilege-Escalation.html (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2020-b92d7083ca (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- USN-4294-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [oss-security] 20210504 21Nails: Multiple vulnerabilities in Exim (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2020-29642 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-8794)Record last updated .