CVE-2026-40020

dovecot: Attacker can use the IMAP SETACL command to inject the anyone permission to user's dovecot-acl file even if imap_acl_...

CVE-2026-40020 is fixed in 19 products on 1 platform, first by dovecot-auth-lua 1:2.3.16+dfsg1-3ubuntu2.9, released May 12, 2026. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
4.3
medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0026
17th percentile

Attacker can use the IMAP SETACL command to inject the anyone permission to user's dovecot-acl file even if imap_acl_allow_anyone=no. This causes folders to be spammed to all users. The impact is limited to being able to spam folders to other users, no unexpected access is gained. Install to fixed version. No publicly available exploits are known.

Where it's fixed

ProductFixed inFixReleased
Linux
dovecot · Debian 12.15 (bookworm) 1:2.3.19.1+dfsg1-2.1+deb12u6 DEBIAN-CVE-2026-40020 May 27, 2026
dovecot · Debian 13.5 (trixie) 1:2.4.1+dfsg1-6+deb13u6 DEBIAN-CVE-2026-40020 May 27, 2026
dovecot · Debian 14 1:2.4.4+dfsg1-1 DEBIAN-CVE-2026-40020 May 27, 2026
dovecot-auth-lua · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-auth-lua 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-auth-lua · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-auth-lua 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-auth-lua · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-auth-lua 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-auth-lua · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-auth-lua 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-core · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-core 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-core · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-core 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-core · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-core 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-core · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-core 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-flatcurve · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-flatcurve 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-flatcurve · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-flatcurve 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-gssapi · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-gssapi 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-gssapi · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-gssapi 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-gssapi · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-gssapi 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-gssapi · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-gssapi 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-imapd · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-imapd 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-imapd · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-imapd 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-imapd · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-imapd 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-imapd · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-imapd 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-ldap · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-ldap 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-ldap · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-ldap 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-ldap · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-ldap 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-ldap · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-ldap 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-lmtpd · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-lmtpd 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-lmtpd · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-lmtpd 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-lmtpd · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-lmtpd 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-lmtpd · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-lmtpd 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-lucene · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-lucene 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-managesieved · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-managesieved 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-managesieved · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-managesieved 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-managesieved · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-managesieved 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-managesieved · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-managesieved 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-mysql · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-mysql 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-mysql · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-mysql 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-mysql · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-mysql 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-mysql · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-mysql 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-pgsql · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-pgsql 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-pgsql · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-pgsql 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-pgsql · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-pgsql 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-pgsql · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-pgsql 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-pop3d · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-pop3d 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-pop3d · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-pop3d 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-pop3d · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-pop3d 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-pop3d · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-pop3d 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-sieve · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-sieve 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-sieve · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-sieve 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-sieve · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-sieve 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-sieve · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-sieve 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-solr · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-solr 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-solr · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-solr 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-solr · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-solr 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-solr · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-solr 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-sqlite · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-sqlite 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-sqlite · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-sqlite 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-sqlite · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-sqlite 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-sqlite · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-sqlite 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot-submissiond · Ubuntu 22.04.1 LTS (jammy) 1:2.3.16+dfsg1-3ubuntu2.9 dovecot-submissiond 1:2.3.16+dfsg1-3ubuntu2.9 May 12, 2026
dovecot-submissiond · Ubuntu 24.04.5 LTS (noble) 1:2.3.21+dfsg1-2ubuntu6.5 dovecot-submissiond 1:2.3.21+dfsg1-2ubuntu6.5 May 12, 2026
dovecot-submissiond · Ubuntu 25.10 (questing) 1:2.4.1+dfsg1-5ubuntu4.2 dovecot-submissiond 1:2.4.1+dfsg1-5ubuntu4.2 May 12, 2026
dovecot-submissiond · Ubuntu 26.04.1 LTS (resolute) 1:2.4.2+dfsg1-3ubuntu2.1 dovecot-submissiond 1:2.4.2+dfsg1-3ubuntu2.1 May 12, 2026
dovecot23 · sles 15.6 2.3.21.1-150200.76.1 SUSE-SU-2026:4139-1 Sep 14, 2026
dovecot23 · sles 15.7 2.3.21.1-150200.76.1 SUSE-SU-2026:4139-1 Sep 14, 2026
dovecot24 · opensuse-leap 16.0 2.4.4-160000.1.1 OPENSUSE-SU-2026:21109-1 Jun 19, 2026
dovecot24 · sles 16.0 2.4.4-160000.1.1 SUSE-SU-2026:22185-1 Jun 19, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.