LDAP injection in Dovecot and OX Dovecot Pro - CVE-2026-27860
Published: April 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass authentication.
The vulnerability exists due to improper neutralization of special elements in an LDAP query within the auth-ldap module when processing usernames. A remote attacker can send a specially crafted request with malicious username when auth_username_chars is empty to probe LDAP structure and potentially bypass authentication.
The server must have auth_username_chars configuration option cleared.
Affected software
OX Dovecot Pro
Ubuntu
dovecot (Ubuntu package)
How to mitigate CVE-2026-27860
OX Dovecot Pro - update to 3.1.4
dovecot (Ubuntu package) - addressed in versions 1:2.3.16+dfsg1-3ubuntu2.7, 1:2.3.16+dfsg1-3ubuntu2.8, 1:2.3.21+dfsg1-2ubuntu6.3, 1:2.3.21+dfsg1-2ubuntu6.4, 1:2.4.1+dfsg1-5ubuntu4.1