CVE-2026-40016·Dovecot vulnerability
Attacker can upload a malicious Sieve script over ManageSieve service (or locally) to bypass configured CPU time limits for Sieve up to 130 times of the configured limit. Attacker can use this to degrade server performance and bypass configured CPU time limits for Sieve scripts. Install fixed version, or alternatively prevent direct access to Sieve scripts via ManageSieve or local access. No publicly available exploits are known.
- Severity
- medium
- 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.43% — higher than 35% 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.
Affected versions
Until: 2.4.4
Fixed in: 2.4.4
How to fix this CVE
Upgrade Dovecot to version 2.4.4 or later to patch the Sieve script CPU time limit bypass vulnerability. If immediate patching is not possible, restrict access to the ManageSieve service and disable direct filesystem access to Sieve scripts to prevent malicious script uploads. Review your Sieve execution policies and consider implementing additional resource quotas at the system level as a temporary mitigation.
sudo dnf update dovecot dovecot-imapd dovecot-pop3dDefensia detects this vulnerability
How to check if you are affected
- Check installed Dovecot version: dovecot --version
- Verify ManageSieve service status: systemctl status dovecot | grep -i sieve or check /etc/dovecot/conf.d/ for sieve_* configuration directives
- Review Dovecot logs for excessive Sieve compilation or execution: grep -i 'sieve' /var/log/dovecot/dovecot.log | grep -E '(cpu|timeout|limit)'
- Confirm patch installation: dovecot --version should report 2.4.4 or higher; cross-reference with dpkg -l dovecot-core (Debian/Ubuntu) or rpm -qa dovecot (RHEL/CentOS)
FAQ
What is CVE-2026-40016?
CVE-2026-40016 is a resource exhaustion vulnerability in Dovecot's Sieve script engine that allows authenticated attackers to craft malicious scripts exceeding configured CPU time limits by up to 130 times, potentially degrading mail server performance.
Is CVE-2026-40016 being actively exploited?
No, this vulnerability is not currently listed on the CISA KEV catalog and no public exploits are known. However, it poses a significant denial-of-service risk and should be patched proactively.
What versions of Dovecot are affected by CVE-2026-40016?
All Dovecot versions prior to and including 2.4.3 are vulnerable. Dovecot 2.4.4 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2026-40016?
Run 'dovecot --version' and compare the output to version 2.4.4. If your version is 2.4.3 or earlier, your system is vulnerable. Additionally, check if ManageSieve is enabled in /etc/dovecot/conf.d/20-managesieve.conf.
Does Defensia detect CVE-2026-40016?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Dovecot is installed on a monitored server, CVE-2026-40016 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-40016. Free for 1 server.
Get started free