CVE-2020-8794 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...
CriticalCVSS 9.8
EPSS 88.9%
Framework module
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
- Technology
- UbuntuDebian
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.
Upgrade path
18 packages: 15 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/opensmtpd-extras(Alpine v3.13) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| alpine/opensmtpd-extras(Alpine v3.14) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| alpine/opensmtpd-extras(Alpine v3.15) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| alpine/opensmtpd-extras(Alpine v3.16) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| alpine/opensmtpd-extras(Alpine v3.17) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| alpine/opensmtpd-extras(Alpine v3.18) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| alpine/opensmtpd-extras(Alpine v3.19) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| alpine/opensmtpd-extras(Alpine v3.20) | < 6.6.4-r0 | 6.6.4-r0 | Fixed |
| debian/opensmtpd(Debian 12) | < 6.6.4p1-1 | 6.6.4p1-1 | Fixed |
| debian/opensmtpd(Debian 13) | < 6.6.4p1-1 | 6.6.4p1-1 | Fixed |
| debian/opensmtpd(Debian 14) | < 6.6.4p1-1 | 6.6.4p1-1 | Fixed |
| opensmtpd | < 6.6.4 | 6.6.4 | Fixed |
| ubuntu/opensmtpd(Ubuntu 18.04) | < 6.0.3p1-1ubuntu0.2; = 6.0.2p1-2build1; = 6.0.3p1-1; = 6.0.3p1-1build1 +1 more | 6.0.3p1-1ubuntu0.2 | Fixed |
| ubuntu/opensmtpd(Ubuntu 20.04) | < 6.6.4p1-1; = 6.0.3p1-6; = 6.0.3p1-6build1; = 6.6.1p1-1 +4 more | 6.6.4p1-1 | Fixed |
| ubuntu/opensmtpd(Ubuntu Pro 16.04) | < 5.7.3p2-1ubuntu0.1~esm2; = 5.4.2p1-4; = 5.7.3p1-1; = 5.7.3p2-1 +1 more | 5.7.3p2-1ubuntu0.1~esm2 | Fixed |
| Canonical Ubuntu Linux | = 18.04; = 19.10 | No fix listed | Versions listed |
| debian linux | = 9.0; = 10.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 31; = 32 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/opensmtpd(Debian:12) | < 6.6.4p1-1 | 6.6.4p1-1 |
| debian/opensmtpd(Debian:13) | < 6.6.4p1-1 | 6.6.4p1-1 |
| debian/opensmtpd(Debian:14) | < 6.6.4p1-1 | 6.6.4p1-1 |
| opensmtpd | < 6.6.4 | 6.6.4 |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 19.10 | No fix listed |
| fedoraproject fedora | = 31 | No fix listed |
| fedoraproject fedora | = 32 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| alpine/opensmtpd-extras(Alpine:v3.13) | < 6.6.4-r0 | 6.6.4-r0 |
| alpine/opensmtpd-extras(Alpine:v3.14) | < 6.6.4-r0 | 6.6.4-r0 |
| alpine/opensmtpd-extras(Alpine:v3.15) | < 6.6.4-r0 | 6.6.4-r0 |
| alpine/opensmtpd-extras(Alpine:v3.16) | < 6.6.4-r0 | 6.6.4-r0 |
| alpine/opensmtpd-extras(Alpine:v3.17) | < 6.6.4-r0 | 6.6.4-r0 |
| alpine/opensmtpd-extras(Alpine:v3.18) | < 6.6.4-r0 | 6.6.4-r0 |
| alpine/opensmtpd-extras(Alpine:v3.19) | < 6.6.4-r0 | 6.6.4-r0 |
| alpine/opensmtpd-extras(Alpine:v3.20) | < 6.6.4-r0 | 6.6.4-r0 |
| ubuntu/opensmtpd(Ubuntu:Pro:16.04) | < 5.7.3p2-1ubuntu0.1~esm2 | 5.7.3p2-1ubuntu0.1~esm2 |
| ubuntu/opensmtpd(Ubuntu:Pro:16.04) | = 5.4.2p1-4 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:Pro:16.04) | = 5.7.3p1-1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:Pro:16.04) | = 5.7.3p2-1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:Pro:16.04) | = 5.7.3p2-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:18.04) | < 6.0.3p1-1ubuntu0.2 | 6.0.3p1-1ubuntu0.2 |
| ubuntu/opensmtpd(Ubuntu:18.04) | = 6.0.2p1-2build1 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/opensmtpd(Ubuntu:18.04) | = 6.0.3p1-1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:18.04) | = 6.0.3p1-1build1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:18.04) | = 6.0.3p1-1ubuntu0.1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:20.04) | < 6.6.4p1-1 | 6.6.4p1-1 |
| ubuntu/opensmtpd(Ubuntu:20.04) | = 6.0.3p1-6 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:20.04) | = 6.0.3p1-6build1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:20.04) | = 6.6.1p1-1 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:20.04) | = 6.6.1p1-3 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:20.04) | = 6.6.1p1-4 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:20.04) | = 6.6.1p1-5 | No fix listed |
| ubuntu/opensmtpd(Ubuntu:20.04) | = 6.6.2p1-1 | No fix listed |
References
- Debian Security Tracker CVE-2020-8794 vendor-advisory
- bugs.debian.org issue-tracking
- packetstormsecurity.com exploit third-party-advisory vdb-entry
- 20200227 LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) mailing-list third-party-advisory
- [oss-security] 20200226 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) exploit mailing-list third-party-advisory
- [oss-security] 20200301 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) mailing-list third-party-advisory
- [oss-security] 20200301 Re: LPE and RCE in OpenSMTPD's default install (CVE-2020-8794) mailing-list third-party-advisory
- [oss-security] 20210504 21Nails: Multiple vulnerabilities in Exim exploit mailing-list third-party-advisory
- FEDORA-2020-b92d7083ca vendor-advisory
- USN-4294-1 patch third-party-advisory vendor-advisory
- DSA-4634 third-party-advisory vendor-advisory
- www.openbsd.org third-party-advisory
- www.openwall.com exploit mailing-list third-party-advisory
- security.alpinelinux.org vendor-advisory
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking