Privilege escalation in Postfix - #VU7062
Published: June 14, 2017 / Updated: March 20, 2020
Vulnerability identifier: #VU7062
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-427
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vendor: Postfix.org
Affected software:
Postfix
Postfix
Detailed vulnerability description
The vulnerability allows a local user to escalate his privileges on the system.
The vulnerability exists due to Berkeley DB versions 2 and later try to read settings from a file DB_CONFIG in the current directory. A local user can create a specially crafted DB_CONFIG file and escalate his privileges on the system with Postfix set-gid programs (postdrop, postqueue) before they chdir to the Postfix queue directory, and with the postmap and postalias commands depending on whether the user's current directory is writable by other users.
Successful exploitation of the vulnerability may allow a local user to gain elevated privileges on the system.
The vulnerability exists due to Berkeley DB versions 2 and later try to read settings from a file DB_CONFIG in the current directory. A local user can create a specially crafted DB_CONFIG file and escalate his privileges on the system with Postfix set-gid programs (postdrop, postqueue) before they chdir to the Postfix queue directory, and with the postmap and postalias commands depending on whether the user's current directory is writable by other users.
Successful exploitation of the vulnerability may allow a local user to gain elevated privileges on the system.
Remediation
Update to version 3.2.2, 3.1.6, 3.0.10 or 2.11.10