CVE-2023-34108: Manipulation of Internal Dovecot Variables in mailcow via crafted Passwords
mailcow is a mail server suite based on Dovecot, Postfix and other open source software, that provides a modern web UI for user/server administration. A vulnerability has been discovered in mailcow which allows an attacker to manipulate internal Dovecot variables by using specially crafted passwords during the authentication process. The issue arises from the behavior of the passwd-verify.lua script, which is responsible for verifying user passwords during login attempts. Upon a successful login, the script returns a response in the format of "password=<valid-password>", indicating the successful authentication. By crafting a password with additional key-value pairs appended to it, an attacker can manipulate the returned string and influence the internal behavior of Dovecot. For example, using the password "123 mailcryptsaveversion=0" would cause the passwd-verify.lua script to return the string "password=123 mailcryptsaveversion=0". Consequently, Dovecot will interpret this string and set the internal variables accordingly, leading to unintended consequences. This vulnerability can be exploited by an authenticated attacker who has the ability to set their own password. Successful exploitation of this vulnerability could result in unauthorized access to user accounts, bypassing security controls, or other malicious activities. This issue has been patched in version 2023-05a. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
mailcowto a version that resolves this vulnerability.Fixed in 2023-05aPatch 2023-05a
Event History
Frequently Asked Questions
What is CVE-2023-34108?
CVE-2023-34108 is a vulnerability in mailcow that allows an attacker to manipulate internal Dovecot variables using specially crafted passwords.
What is the severity of CVE-2023-34108?
The severity of CVE-2023-34108 is high, with a severity value of 8.8.
What is affected by CVE-2023-34108?
The mailcow mail server suite based on Dovecot and Postfix is affected by CVE-2023-34108.
How can an attacker exploit CVE-2023-34108?
An attacker can exploit CVE-2023-34108 by using specially crafted passwords to manipulate internal Dovecot variables.
Is there a fix for CVE-2023-34108?
Yes, a fix for CVE-2023-34108 is available. Please refer to the provided references for more information.