CVE-2026-27852·Dovecot vulnerability
An attacker that can send mail to a user can craft a message whose headers contain a very large number of email addresses or MIME parameters, which causes excessive memory usage when the message is later parsed. The message is still delivered, but reading it over IMAP can exhaust the memory limit of the process and terminate it, causing denial of service for the affected user. Update to non-vulnerable version. No publicly available exploits are known.
- Severity
- critical
- Software
- Dovecot
- Fixed in
- 1:2.4.1+dfsg1-6+deb13u7
- Published
Affected versions
Until: 1:2.4.1+dfsg1-6+deb13u7
Fixed in: 1:2.4.1+dfsg1-6+deb13u7
How to fix this CVE
Dovecot versions prior to 1:2.4.1+dfsg1-6+deb13u7 are vulnerable to a denial-of-service condition triggered by specially crafted email messages with malformed headers. Upgrade to version 1:2.4.1+dfsg1-6+deb13u7 or later to eliminate the memory exhaustion vulnerability. This fix prevents attackers from crashing mail server processes by sending emails with oversized header fields or MIME parameters.
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+'
- Confirm IMAP service is exposed: ss -tlnp | grep -E ':(143|993)' to verify IMAP ports are listening
- Search Dovecot logs for memory-related crashes: grep -i 'out of memory\|memory limit\|fatal' /var/log/dovecot/dovecot.log | head -20
- Verify patch installation: apt list --installed 2>/dev/null | grep dovecot or rpm -qa | grep dovecot to confirm version ≥ 1:2.4.1+dfsg1-6+deb13u7
FAQ
What is CVE-2026-27852?
This is a memory exhaustion vulnerability in Dovecot's IMAP message parser that allows unauthenticated attackers to crash mail server processes by sending emails with extremely large header fields or MIME parameters. The vulnerability denies service to legitimate users accessing their mailbox.
Is CVE-2026-27852 being actively exploited?
No, CVE-2026-27852 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the low barrier to exploitation (sending a crafted email) means affected systems should be patched promptly.
What versions of Dovecot are affected by CVE-2026-27852?
All Dovecot versions up to and including 1:2.4.1+dfsg1-6+deb13u6 are vulnerable. Version 1:2.4.1+dfsg1-6+deb13u7 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-27852?
Run 'dovecot --version' and compare the output to version 1:2.4.1+dfsg1-6+deb13u7; if your version is older, you are vulnerable. You can also run 'apt-cache policy dovecot-core' to check available updates.
Does Defensia detect CVE-2026-27852?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Dovecot is installed on a monitored server, CVE-2026-27852 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-27852. Free for 1 server.
Get started free