CVE-2023-34108: Manipulation of Internal Dovecot Variables in mailcow via crafted Passwords

Published Jun 7, 2023
·
Updated

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

1 affected component
Mailcow Mailcow\<=2023-05

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mailcow to a version that resolves this vulnerability.

    Fixed in 2023-05aPatch 2023-05a

Event History

Jun 7, 2023
CVE Published
via MITRE·05:16 PM
Data Sourced
via MITRE·05:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

What is the severity of CVE-2023-34108?

The severity of CVE-2023-34108 is high, with a severity value of 8.8.

3

What is affected by CVE-2023-34108?

The mailcow mail server suite based on Dovecot and Postfix is affected by CVE-2023-34108.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203