PT-2020-5157 · Openbsd+1 · Opensmtpd+1
Alexander E. Patrakov
·
Published
2020-02-24
·
Updated
2022-10-08
·
CVE-2020-8794
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
OpenSMTPD versions prior to 6.6.4
Description
The issue is related to an out-of-bounds read in the
mta io function in mta session.c for multi-line replies, which can allow remote code execution. Although this affects the client side of OpenSMTPD, it is possible to attack a server because the server code launches the client code during bounce handling. The vulnerability can be exploited by sending specially crafted emails, potentially allowing attackers to take over vulnerable remote servers.Recommendations
For OpenSMTPD versions prior to 6.6.4, update to version 6.6.4 or later to resolve the issue. As a temporary workaround, consider restricting access to the
mta io function in mta session.c until a patch is available. Avoid using the vulnerable code during bounce handling to minimize the risk of exploitation.Exploit
Fix
RCE
Out of bounds Read
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Opensmtpd
Ubuntu