CVE-2026-40014·Dovecot vulnerability
An attacker that can send mail to a user can craft a message header that makes the IMAP THREAD command consume CPU disproportionate to the size of the message. When a mail client issues a THREAD command on the affected mailbox, this can cause degradation or denial of service for IMAP. Monitor system for abnormal CPU usage, kill the offending process and remove the offending message from the affected mailbox. Update to non-vulnerable version. No publicly available exploits are known.
- Severity
- high
- 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 contain a CPU exhaustion vulnerability triggered by specially crafted email message headers when IMAP THREAD operations are performed. Organizations should upgrade to the patched version immediately and review mailboxes for suspicious messages that may have been used in exploitation attempts. Until patching is complete, monitor IMAP process CPU consumption and consider restricting THREAD command usage at the server level.
sudo dnf update dovecot dovecot-imapdDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
THREAD command followed by unusual CPU spike in dovecot process; pattern: 'tag.*THREAD.*REFERENCES|DATE|SUBJECT|FROM|TO|CC|MESSAGE-ID' in IMAP logs concurrent with top/htop showing dovecot consuming >80% CPU for sustained durationHow to check if you are affected
- Check installed Dovecot version: dovecot --version | grep -oP '\d+\.\d+\.\d+'
- Verify IMAP service is exposed: ss -tlnp | grep -i dovecot or netstat -tlnp | grep dovecot
- Search Dovecot logs for THREAD command execution: grep -i 'THREAD' /var/log/dovecot/imap.log* | tail -100
- Confirm fix installation: dpkg -l | grep dovecot and verify version >= 1:2.4.1+dfsg1-6+deb13u7
FAQ
What is CVE-2026-40014?
CVE-2026-40014 is a CPU exhaustion vulnerability in Dovecot's IMAP THREAD command implementation that allows remote attackers to cause denial of service by sending maliciously formatted email headers. When a mail client executes a THREAD operation on a mailbox containing the malicious message, the IMAP process consumes excessive CPU resources, degrading or disabling IMAP service availability.
Is CVE-2026-40014 being actively exploited?
No, CVE-2026-40014 is not listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the attack vector (remote, unauthenticated email delivery) means exploitation could occur without detection if an attacker has basic mail delivery access.
What versions of Dovecot are affected by CVE-2026-40014?
All Dovecot versions up to and including 1:2.4.1+dfsg1-6+deb13u6 are affected. 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-40014?
Run 'dovecot --version' and compare the output against version 1:2.4.1+dfsg1-6+deb13u7. If your version is earlier, your system is vulnerable. Also verify IMAP is enabled with 'doveconf protocols | grep imap'.
Does Defensia detect CVE-2026-40014?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Dovecot is installed on a monitored server, CVE-2026-40014 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-40014. Free for 1 server.
Get started free