CVE-2026-27860
Dovecot vulnerability analysis and mitigation

Overview

CVE-2026-27860 is an LDAP injection vulnerability in Dovecot's LDAP authentication mechanism that allows unauthenticated remote attackers to inject arbitrary LDAP filter characters when the auth_username_chars configuration parameter is empty. It affects Dovecot versions prior to 2.4.3 and Open-Xchange Dovecot Pro versions prior to 3.1.4. The vulnerability was published on March 27, 2026, with a patch advisory released by Open-Xchange. It carries a CVSS v3.1 base score of 5.3 (Medium) per NVD, though ENISA's EUVD rates it 3.7 (Low) under a higher attack complexity assumption (OX Advisory, EUVD).

Technical details

The root cause is improper neutralization of special elements used in an LDAP query (CWE-90 / LDAP Injection, CAPEC-136). When the auth_username_chars configuration option is set to an empty value in Dovecot, the username field passed to the LDAP authentication backend is not sanitized, allowing an attacker to embed arbitrary LDAP filter syntax (e.g., parentheses, wildcards, logical operators) into the username string. This crafted input is then interpreted by the LDAP server as part of the filter expression, enabling filter manipulation. No authentication, user interaction, or special privileges are required to exploit this vulnerability over the network (OX Advisory, oss-sec).

Impact

Successful exploitation allows a network attacker to probe and enumerate the LDAP directory structure, potentially identifying valid usernames, organizational units, and other directory attributes. Additionally, authentication restrictions may be bypassed by crafting LDAP filters that alter the authentication logic (e.g., forcing a filter to always evaluate as true). The primary confirmed impact is low-level information disclosure (confidentiality: low); integrity and availability are not directly affected. The vulnerability scope is limited to systems where Dovecot is configured to use LDAP authentication with auth_username_chars explicitly cleared (OX Advisory, EUVD).

Exploitation steps

  1. Reconnaissance: Identify Dovecot mail servers exposed to the network using port scanning (IMAP/993, POP3/995, SMTP/587) or service fingerprinting tools. Determine if the target uses LDAP authentication by observing authentication error messages or reviewing publicly available configuration documentation.
  2. Verify precondition: Confirm that the target Dovecot instance has auth_username_chars set to an empty value — this is the required misconfiguration. Default Dovecot installations restrict username characters, so this requires a deliberate configuration change.
  3. Craft malicious username: Construct a login attempt with a username containing LDAP special characters (e.g., *, (, ), \, |, &) to inject into the LDAP filter. For example, a username like *)(uid=*))(|(uid=* could manipulate the LDAP filter logic.
  4. Send authentication request: Submit the crafted username via a standard mail protocol (IMAP, POP3, SMTP AUTH) to the Dovecot server. The injected characters are passed unsanitized to the LDAP backend.
  5. Probe LDAP structure: Observe authentication responses (success/failure, timing differences) to infer information about the LDAP directory structure, enumerate valid users, or attempt to bypass authentication restrictions (oss-sec, OX Advisory).

Indicators of compromise

  • Logs: Dovecot authentication logs (/var/log/mail.log or /var/log/dovecot.log) showing login attempts with usernames containing LDAP special characters such as *, (, ), |, &, or \.
  • Logs: Repeated failed or anomalous authentication attempts from a single source IP, particularly with systematically varied username patterns suggestive of enumeration.
  • Logs: LDAP server query logs showing unusual filter expressions originating from the Dovecot service account, especially filters with unexpected logical operators or wildcards.
  • Network: High volume of IMAP (port 143/993), POP3 (port 110/995), or SMTP AUTH (port 587) connection attempts from a single external IP with varying usernames.
  • Network: Outbound LDAP queries (port 389/636) from the Dovecot server with abnormally complex or malformed filter strings.

Mitigation and workarounds

Upgrade Dovecot to version 2.4.3 or later, or upgrade Open-Xchange Dovecot Pro to version 3.1.4 or later to receive the official fix (OX Advisory). As an immediate workaround, ensure the auth_username_chars configuration parameter is not set to an empty value — retaining the default character restrictions prevents injection of LDAP special characters. Ubuntu users should apply the patches provided in USN-8136-1 and USN-8136-2 (Ubuntu USN-8136-1, Ubuntu USN-8136-2). openSUSE users should apply the security updates announced via the openSUSE security mailing list (openSUSE Advisory). Debian users should apply DSA-6197-1 as covered by downstream advisories.

Community reactions

The vulnerability was disclosed via the oss-security mailing list and Full Disclosure list in March 2026, generating moderate community attention (oss-sec, Full Disclosure). Major Linux distributions including Ubuntu, openSUSE, and Debian issued security advisories and updated packages relatively promptly after disclosure. Security scanner vendors Tenable (Nessus) and Qualys added detection plugins shortly after the advisory was published. Overall community sentiment treats this as a low-to-medium severity issue given the non-default precondition required for exploitation and the absence of known active exploitation.

Additional resources


SourceThis report was generated using AI

Related Dovecot vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-27851CRITICAL9.1
  • Dovecot logoDovecot
  • dovecot
NoYesMay 12, 2026
CVE-2026-40016MEDIUM6.5
  • Dovecot logoDovecot
  • dovecot-pigeonhole-debuginfo
NoYesMay 12, 2026
CVE-2026-33603MEDIUM5.3
  • Dovecot logoDovecot
  • dovecot24
NoYesMay 12, 2026
CVE-2026-42006MEDIUM4.3
  • Dovecot logoDovecot
  • dovecot-mysql-debuginfo
NoYesMay 12, 2026
CVE-2026-40020MEDIUM4.3
  • Dovecot logoDovecot
  • dovecot
NoYesMay 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management