CVE-2026-27851·Dovecot vulnerability
When safe filter is used with variable expansion, all following pipelines on the same string are incorrectly interpreted as safe too, enabling unsafe data to be unescaped. This can enable SQL / LDAP injection attacks when used in authentication. Avoid using safe filter until on fixed version. No publicly available exploits are known.
- Severity
- high
- Software
- Dovecot
- Fixed in
- 2.4.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.58% — higher than 46% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-27851 scores 7.4 on CVSS, so a successful attack would be serious — but at 0.58%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
Until: 2.4.4
Fixed in: 2.4.4
How to fix this CVE
Update Dovecot to version 2.4.4 or later to patch the unsafe filter variable expansion flaw that can lead to SQL and LDAP injection in authentication mechanisms. Organizations using the safe filter in Dovecot configurations should prioritize this update immediately, as the vulnerability allows downstream pipelines to incorrectly process unsafe data. Review your Dovecot filter configurations after patching to ensure no reliance on the previous unsafe behavior.
sudo dnf update dovecotDefensia detects this vulnerability
How to check if you are affected
- Check installed Dovecot version: dovecot --version | grep -oP '\d+\.\d+\.\d+'
- Verify if safe filter is enabled in configuration: grep -r 'safe' /etc/dovecot/conf.d/ | grep -i filter
- Search Dovecot logs for authentication attempts with variable expansion patterns: grep -E 'sieve.*\$|safe.*\|' /var/log/dovecot/dovecot.log
- Confirm patch applied by re-running dovecot --version and verifying it reports 2.4.4 or higher
FAQ
What is CVE-2026-27851?
CVE-2026-27851 is a critical filter processing flaw in Dovecot that causes the safe filter to incorrectly mark subsequent pipelines as safe when variable expansion is used, potentially allowing injection of unsanitized data into SQL and LDAP queries during user authentication.
Is CVE-2026-27851 being actively exploited?
No, CVE-2026-27851 is not currently listed on the CISA Known Exploited Vulnerabilities catalog, and no public exploits are documented; however, this does not diminish the need for immediate patching given the injection attack surface.
What versions of Dovecot are affected by CVE-2026-27851?
All Dovecot versions up to and including 2.4.3 are affected; version 2.4.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-27851?
Run 'dovecot --version' and confirm the version is 2.4.4 or later. Additionally, check if the safe filter is actively used in /etc/dovecot/conf.d/*.conf with 'grep -r "safe" /etc/dovecot/conf.d/' to determine if your configuration triggers the vulnerable code path.
Does Defensia detect CVE-2026-27851?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Dovecot is installed on a monitored server, CVE-2026-27851 will appear in your dashboard with remediation steps.
Related Dovecot CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-27851. Free for 1 server.
Get started free