Permissions, Privileges, and Access Controls in OpenSMTPD - CVE-2020-8793

 

Permissions, Privileges, and Access Controls in OpenSMTPD - CVE-2020-8793

Published: February 25, 2020 / Updated: September 23, 2021


Vulnerability identifier: #VU25586
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H]
CVE-ID: CVE-2020-8793
CWE-ID: CWE-264
Exploitation vector: Local access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to the application does not drop privileges when executing the "/usr/sbin/smtpctl" application with  a "-bi" command-line argument. A local user can leverage this behavior and use a specially crafted hardlink to execute arbitrary code on the system with elevated privileges.


Affected software

OpenSMTPD
opensmtpd (Ubuntu package)
libasr
opensmtpd
Fedora

How to mitigate CVE-2020-8793

Install updates from vendor's website.

OpenSMTPD - update to 6.6.4p1
opensmtpd (Ubuntu package) - addressed in versions 6.0.3p1-1ubuntu0.2, 6.0.3p1-6ubuntu0.2
libasr - update to 1.0.4-2.el7
opensmtpd - addressed in versions 6.6.4p1-1.el8, 6.6.4p1-1.fc30, 6.6.4p1-1.fc31, 6.6.4p1-2.fc32, 6.6.4p1-3.el7

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins