
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-24031 is a SQL injection-based authentication bypass vulnerability in Dovecot's SQL-based authentication mechanism. When an administrator clears the auth_username_chars configuration option, attackers can bypass authentication for any user and perform user enumeration. The vulnerability affects Dovecot versions before 2.4.3 and OX Dovecot Pro versions before 3.1.4, both maintained by Open-Xchange. It was published on March 27, 2026, and carries a CVSS v3.1 base score of 8.2 (High) (Feedly, OX Advisory).
The root cause is improper neutralization of special elements used in an SQL command (CWE-89), triggered when the auth_username_chars setting is explicitly cleared by an administrator. Under normal configuration, auth_username_chars restricts which characters are permitted in usernames, effectively preventing SQL metacharacters from reaching the authentication query. When this restriction is removed, an attacker can inject SQL syntax into the username field, manipulating the authentication query to bypass credential validation entirely. The vulnerability is network-accessible, requires no privileges or user interaction, and no authentication is needed to exploit it (OX Advisory, Feedly).
Successful exploitation allows an unauthenticated remote attacker to log in as any user on the affected mail server, resulting in high integrity impact and low confidentiality impact (e.g., access to email accounts, potential data exfiltration). Additionally, the vulnerability enables user enumeration, which can facilitate targeted follow-on attacks. Availability is not directly impacted, but unauthorized access to mail accounts could expose sensitive communications and enable lateral movement within an organization (OX Advisory, Feedly).
nmap -sV -p 143,993,110,995).auth_username_chars cleared in its Dovecot configuration — this is a prerequisite for exploitation. This may be inferred by attempting logins with special characters and observing whether they are rejected at the input validation stage.' OR '1'='1) designed to manipulate the SQL authentication query so that it returns a valid result regardless of the password supplied.OR, =, --) in the username field; repeated authentication attempts from a single IP targeting multiple usernames./var/log/dovecot.log or /var/log/mail.log) showing successful logins with usernames containing special characters or SQL syntax; unexpected successful logins from unfamiliar IP addresses or at unusual times.auth_username_chars = (empty value) in Dovecot configuration files (/etc/dovecot/dovecot.conf or included files), indicating the vulnerable misconfiguration is active.The primary workaround is to not clear auth_username_chars — restoring this setting to its default value immediately eliminates the attack surface without requiring a software update (OX Advisory). For permanent remediation, upgrade to Dovecot 2.4.3 or later (community edition) or OX Dovecot Pro 3.1.4 or later. Distribution-specific patches have been released for Ubuntu (USN-8136-1, USN-8136-2), Debian (DSA-6197-1), and openSUSE (Ubuntu Advisory, openSUSE). Administrators should audit Dovecot configurations to ensure auth_username_chars is set to a safe, non-empty value.
The vulnerability was disclosed via the oss-security mailing list and Seclists Full Disclosure, generating moderate community attention (oss-sec, Full Disclosure). Security news outlets including The Hacker Wire and Infinit Security published coverage shortly after disclosure (Infinit Security). Major Linux distributions responded promptly with security advisories and patched packages for Ubuntu, Debian, and openSUSE. No notable threat actor attribution or significant social media controversy has been observed.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."