Skip to content
OpenAdvisories
Unscored Public exploit CVE-2020-8794 EUVD-2020-29642GHSA-hmw3-c3g9-px9f

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. Alt…

Published Feb 25, 2020 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 opensmtpd 6.6.4p1-1 —
Debian 13 opensmtpd 6.6.4p1-1 —
Debian 12 opensmtpd 6.6.4p1-1 —
Debian 10 opensmtpd 6.0.3p1-5+deb10u4 DSA-4634-1
Debian 9 opensmtpd 6.0.2p1-2+deb9u3 DSA-4634-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS opensmtpd 6.6.4p1-1 —
Ubuntu 18.04 LTS opensmtpd 6.0.3p1-1ubuntu0.2 USN-4294-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS opensmtpd 5.7.3p2-1ubuntu0.1~esm2 USN-4875-1
Ubuntu Pro 14.04 LTS opensmtpd 5.4.1p1-1ubuntu0.1~esm1 USN-4875-1
ReleasePackageFixed inAdvisory
Alpine v3.20 opensmtpd-extras 6.6.4-r0 —
Alpine v3.19 opensmtpd-extras 6.6.4-r0 —
Alpine v3.18 opensmtpd-extras 6.6.4-r0 —
Alpine v3.17 opensmtpd-extras 6.6.4-r0 —
Alpine v3.16 opensmtpd-extras 6.6.4-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.15 opensmtpd-extras 6.6.4-r0 —
Alpine v3.14 opensmtpd-extras 6.6.4-r0 —
Alpine v3.13 opensmtpd-extras 6.6.4-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 2

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References