Description
When dovecot has been configured to use per-domain passwd files, and they are placed one path component above /etc, or slash has been added to allowed characters, path traversal can happen if the domain component is directory partial. This allows inadvertently reading /etc/passwd (or some other path which ends with passwd). If this file contains passwords, it can be used to authenticate wrongly, or if this is userdb, it can unexpectly make system users appear valid users. Upgrade to fixed version, or use different authentication scheme that does not rely on paths. Alternatively you can also ensure that the per-domain passwd files are in some other location, such as /etc/dovecot/auth/%d. No publicly available exploits are known.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Open-Xchange | OX Dovecot Pro | ≤ 2.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | dovecot | 1:2.4.1+dfsg1-1 | — |
| Debian 13 | dovecot | 1:2.4.1+dfsg1-1 | — |
| Debian 12 | dovecot | 1:2.3.19.1+dfsg1-2.1+deb12u2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | dovecot | 1:2.3.21+dfsg1-2ubuntu6.3 | USN-8136-2 |
| Ubuntu 22.04 LTS | dovecot | 1:2.3.16+dfsg1-3ubuntu2.7 | USN-8136-2 |
| Ubuntu 20.04 LTS | dovecot | No fix yet | — |
| Ubuntu 18.04 LTS | dovecot | No fix yet | — |
| Ubuntu 16.04 LTS | dovecot | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | dovecot | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | dovecot | No fix yet | — |
Advisories 2
- WID-SEC-2026-0891 Dovecot: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 16, 2026
- USN-8136-2 dovecot regression Ubuntu Security Notices (USN) · Apr 29, 2026