CVE-2026-40018·Dovecot vulnerability
None None None No publicly available exploits are known.
- Severity
- critical
- Software
- Dovecot
- Fixed in
- 1:2.4.1+dfsg1-6+deb13u7
- 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.32% — higher than 23% 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-40018 scores 9 on CVSS, so a successful attack would be serious — but at 0.32%, 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: 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 critical vulnerability that could compromise mail server confidentiality and integrity. Administrators should prioritize upgrading to version 1:2.4.1+dfsg1-6+deb13u7 or later immediately. After patching, restart the Dovecot service and verify the update through package management tools.
sudo dnf update dovecot && sudo systemctl restart dovecotDefensia detects this vulnerability
How to check if you are affected
- Run `dovecot --version` to check the currently installed Dovecot version on your system
- Cross-reference the output against the vulnerable range (versions before 1:2.4.1+dfsg1-6+deb13u7); if your version is lower, the server is vulnerable
- Check Dovecot logs at `/var/log/dovecot/dovecot.log` and `/var/log/dovecot/info.log` for any unusual authentication failures or protocol violations that may indicate exploitation attempts
- After applying the patch, re-run `dovecot --version` and confirm the version matches or exceeds 1:2.4.1+dfsg1-6+deb13u7, then verify Dovecot is running with `sudo systemctl status dovecot`
FAQ
What is CVE-2026-40018?
CVE-2026-40018 is a critical vulnerability in Dovecot mail server that affects the confidentiality and integrity of email communications. It requires network access to trigger but does not require user interaction or elevated privileges.
Is CVE-2026-40018 being actively exploited?
No, CVE-2026-40018 is not currently listed in the CISA Known Exploited Vulnerabilities catalog, and no public exploit code is available, though this does not eliminate the risk of future exploitation.
What versions of Dovecot are affected by CVE-2026-40018?
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-40018?
Execute `dpkg -l | grep dovecot` on Debian/Ubuntu systems or `rpm -qa | grep dovecot` on RHEL-based systems, then compare the output version against 1:2.4.1+dfsg1-6+deb13u7 to determine if your installation is vulnerable.
Does Defensia detect CVE-2026-40018?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Dovecot is installed on a monitored server, CVE-2026-40018 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-40018. Free for 1 server.
Get started free