CVE-2020-8794
OpenSMTPD before 6.6.4 allows remote code execution because of an out-of-bounds read in mta_io in...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2020-8794- 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 - CVSS 2.0
- 10.0 High
AV:N/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2020-8794- Updated
- 2026-11-02
EUVDEUVD-2020-29642 No score
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.
- Record
EUVD-2020-29642- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hmw3-c3g9-px9f
9.8
OpenSMTPD before 6.6.4 allows remote code execution because of an out-of-bounds read in mta_io in...
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.
- Record
GHSA-hmw3-c3g9-px9f- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2020-8794
9.8
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.
- Record
ALPINE-CVE-2020-8794- 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 - Updated
- 2026-11-03
OSV
9.8
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.
- Record
CVE-2020-8794- 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 - Updated
- 2026-11-02
Show 4 moreShow less
OSVDEBIAN-CVE-2020-8794
9.8
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.
- Record
DEBIAN-CVE-2020-8794- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-8794
9.8
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.
- Record
UBUNTU-CVE-2020-8794- 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 - Updated
- 2026-11-02
OSVUSN-4294-1 No score
OpenSMTPD vulnerabilities
It was discovered that OpenSMTPD mishandled certain input. A remote, unauthenticated attacker could use this vulnerability to execute arbitrary shell commands as any non-root user. (CVE-2020-8794)
It was discovered that OpenSMTPD did not properly handle hardlinks under certain conditions. An unprivileged local attacker could read the first line of any file on the filesystem. (CVE-2020-8793)
- Record
USN-4294-1- Updated
- 2026-11-02
OSVUSN-4875-1 No score
opensmtpd vulnerabilities
It was discovered that OpenSMTPD incorrectly verified the sender's or receiver's e-mail addresses under certain conditions. An attacker could possibly use this vulnerability to execute arbitrary commands as root. (CVE-2020-7247)
It was discovered that OpenSMTPD did not properly handle hardlinks under certain conditions. An unprivileged local attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 16.04 ESM. (CVE-2020-8793)
It was discovered that OpenSMTPD mishandled certain input. A remote, unauthenticated attacker could possibly use this vulnerability to execute arbitrary shell commands as any non-root user. This issue only affected Ubuntu 16.04 ESM. (CVE-2020-8794)
- Record
USN-4875-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
opensmtpd-extrasAlpine:v3.13 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpd-extrasAlpine:v3.14 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpd-extrasAlpine:v3.15 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpd-extrasAlpine:v3.16 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpd-extrasAlpine:v3.17 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpd-extrasAlpine:v3.18 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpd-extrasAlpine:v3.19 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpd-extrasAlpine:v3.20 |
before 6.6.4-r0 | 6.6.4-r0 |
opensmtpdDebian:12 |
before 6.6.4p1-1 | 6.6.4p1-1 |
opensmtpdDebian:13 |
before 6.6.4p1-1 | 6.6.4p1-1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
opensmtpdDebian:14 |
before 6.6.4p1-1 | 6.6.4p1-1 |
opensmtpdDebian:9 |
before 6.0.2p1-2+deb9u3, plus listed versions 6.0.2p1-26.0.2p1-2+deb9u16.0.2p1-2+deb9u2 |
6.0.2p1-2+deb9u3 |
opensmtpdDebian:10 |
before 6.0.3p1-5+deb10u4, plus listed versions 6.0.3p1-56.0.3p1-5+deb10u16.0.3p1-5+deb10u26.0.3p1-5+deb10u3 |
6.0.3p1-5+deb10u4 |
opensmtpdUbuntu:Pro:16.04:LTS |
before 5.7.3p2-1ubuntu0.1~esm2, plus listed versions 5.4.2p1-45.7.3p1-15.7.3p2-15.7.3p2-1ubuntu0.1~esm1 |
5.7.3p2-1ubuntu0.1~esm2 |
opensmtpdUbuntu:18.04:LTS |
before 6.0.3p1-1ubuntu0.2, plus listed versions 6.0.2p1-2build16.0.3p1-16.0.3p1-1build16.0.3p1-1ubuntu0.1 |
6.0.3p1-1ubuntu0.2 |
opensmtpdUbuntu:20.04:LTS |
before 6.6.4p1-1, plus listed versions 6.0.3p1-66.0.3p1-6build16.6.1p1-16.6.1p1-36.6.1p1-46.6.1p1-56.6.2p1-1 |
6.6.4p1-1 |
opensmtpdUbuntu:18.04:LTS From an advisory covering 2 CVEs |
before 6.0.3p1-1ubuntu0.2, plus listed versions 6.0.2p1-2build16.0.3p1-16.0.3p1-1build16.0.3p1-1ubuntu0.1 |
6.0.3p1-1ubuntu0.2 |
opensmtpdUbuntu:Pro:14.04:LTS From an advisory covering 3 CVEs |
before 5.4.1p1-1ubuntu0.1~esm1, plus listed versions 5.3.3p1-45.4.1p1-1 |
5.4.1p1-1ubuntu0.1~esm1 |
opensmtpdUbuntu:Pro:16.04:LTS From an advisory covering 3 CVEs |
before 5.7.3p2-1ubuntu0.1~esm2, plus listed versions 5.4.2p1-45.7.3p1-15.7.3p2-15.7.3p2-1ubuntu0.1~esm1 |
5.7.3p2-1ubuntu0.1~esm2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Metasploit | OpenSMTPD OOB Read Local Privilege Escalation | 2020-02-24 |
| Exploit-DB | OpenSMTPD < 6.6.3p1 - Local Privilege Escalation + Remote Code Execution | 2020-02-26 |
| Exploit-DB | OpenSMTPD - OOB Read Local Privilege Escalation (Metasploit) | 2020-03-09 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, exploits, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, Metasploit, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-8794 is a critical vulnerability (CVSS 9.8) in Opensmtpd, published February 25, 2020. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 88.9%, the 99th percentile. Fixed in opensmtpd-extras 6.6.4-r0.
References
openbsd.org/security.html
openwall.com/lists/oss-security/2020/02/24/5
openwall.com/lists/oss-security/2020/02/26/1
debian.org/security/2020/dsa-4634
seclists.org/fulldisclosure/2020/Feb/32
openwall.com/lists/oss-security/2020/03/01/1
Show 16 moreShow less
openwall.com/lists/oss-security/2020/03/01/2
packetstormsecurity.com/files/156633/OpenSMTPD-Out-Of-Bounds-Read-Local-Privilege-Escalation.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E
usn.ubuntu.com/4294-1
openwall.com/lists/oss-security/2021/05/04/7
nvd.nist.gov/vuln/detail/CVE-2020-8794
lists.fedoraproject.org/archives/list/[email protected]/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E
github.com/advisories/GHSA-hmw3-c3g9-px9f
security.alpinelinux.org/vuln/CVE-2020-8794
security-tracker.debian.org/tracker/CVE-2020-8794
ubuntu.com/security/CVE-2020-8794
ubuntu.com/security/notices/USN-4294-1
ubuntu.com/security/notices/USN-4875-1
cve.org/CVERecord?id=CVE-2020-8794
ubuntu.com/security/CVE-2020-8793
ubuntu.com/security/CVE-2020-7247