SQL injection in Dovecot and OX Dovecot Pro - CVE-2026-24031

 

SQL injection in Dovecot and OX Dovecot Pro - CVE-2026-24031

Published: April 1, 2026


Vulnerability identifier: #VU124726
CSH Severity: Medium
CVSS v4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-24031
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass authentication and enumerate users.

The vulnerability exists due to improper input validation in SQL-based authentication when processing usernames. A remote attacker can send a specially crafted request with malicious username when auth_username_chars is cleared by admin to bypass authentication and enumerate users.

The server must have auth_username_chars configuration option cleared.


Affected software

Dovecot
OX Dovecot Pro
Ubuntu
dovecot (Ubuntu package)

How to mitigate CVE-2026-24031

Install security update from vendor's website.

Dovecot - update to 2.4.3
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

External References

Related Security Bulletins