
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-27851 is a filter-handling vulnerability in Dovecot (and OX Dovecot Pro) that enables SQL and LDAP injection attacks through authentication mechanisms. When the safe filter is used with variable expansion, all subsequent pipelines on the same string are incorrectly treated as safe, allowing unsafe data to pass through unescaped. The vulnerability affects Dovecot versions prior to 2.4.4 and OX Dovecot Pro versions prior to 3.1.5. It was published on May 12, 2026, with a CVSS v3.1 base score of 9.1 (Critical) per Feedly/NVD estimates, and 7.4 (High) per the vendor and GitHub Advisory (GitHub Advisory, OX Advisory).
The root cause is classified as CWE-235 (Improper Handling of Extra Parameters), where Dovecot's template/filter pipeline logic fails to correctly scope the safe designation — once a string is marked safe via the safe filter with variable expansion, all subsequent pipeline operations on that string inherit the safe status incorrectly, bypassing escaping logic. This allows attacker-controlled input to be injected into SQL or LDAP queries without proper sanitization, particularly in authentication contexts. The attack requires no privileges and no user interaction, and is exploitable remotely over the network, though the vendor-assigned CVSS score reflects high attack complexity (GitHub Advisory, OX Advisory).
Successful exploitation allows an unauthenticated remote attacker to inject arbitrary SQL or LDAP commands through Dovecot's authentication mechanisms, potentially bypassing authentication entirely or accessing unauthorized data. The confidentiality and integrity impacts are rated High, as attackers could read sensitive mail account data or manipulate directory/database records; availability is not directly impacted. In environments using SQL or LDAP backends for Dovecot authentication, this could lead to full authentication bypass and unauthorized access to user mailboxes (GitHub Advisory, OX Advisory).
' OR '1'='1 for SQL, or *)(uid=*))(|(uid=* for LDAP) that will be processed by a template pipeline using the safe filter.safe filter's incorrect propagation causes the injected payload to bypass escaping and be passed raw to the backend query.', --, OR, UNION) or LDAP special characters (*, (, ), |, &) in username or password fields./var/log/dovecot.log or /var/log/mail.log) showing repeated failed or anomalous login attempts with unusual characters in credentials; SQL or LDAP error messages logged by the backend database or directory service.Upgrade Dovecot to version 2.4.4 or later (community edition) or OX Dovecot Pro to version 3.1.5 or later to fully remediate the vulnerability (OX Advisory). As an immediate workaround prior to patching, avoid using the safe filter in Dovecot template/pipeline configurations, particularly in authentication-related contexts (GitHub Advisory). Distribution-specific patches have been released for openSUSE, Ubuntu (USN-8365-1), and Fedora 44, and users of these platforms should apply available package updates promptly (Ubuntu Advisory, openSUSE).
The vulnerability was disclosed via the oss-security mailing list and Seclists Full Disclosure in May 2026, indicating standard coordinated disclosure practices (oss-sec, Full Disclosure). Major Linux distributions including Ubuntu, openSUSE, and Fedora responded promptly with security update advisories. No notable independent researcher commentary or significant social media discussion has been identified beyond standard vulnerability tracking and distribution advisories.
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."