All vulnerabilities

Servers and applications

CVE-2026-0394

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,…

Severity
Medium 5.3
Published
27 Mar 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.4.0
Exploit chance
0.4% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Path traversal (CWE-22)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Sources
NVD

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.

From NVD.

Affected software

SoftwareAffected versions
DovecotServers and applications · cpe:a:dovecot:dovecot
  • Every version before 2.4.0

About Dovecot

free software IMAP and POP3 server

From Wikidata, CC0 1.0.
Developer
Timo SirainenWikidata
License
MIT License, GNU Lesser General Public License, version 2.1Wikidata
Written in
CWikidata
First released
2002Wikidata

Release lines

ReleaseLatestSecurity fixes
2.42.4.5Yes
2.32.3.21.1Yes
2.22.2.36.4Ended 24 Jan 2025
2.12.1.16Ended 22 Dec 2017
2.02.0.15Ended 11 Apr 2013

From endoflife.date.

Vulnerabilities in Dovecot

In our list
68
Published in the last 12 months
16
Critical, last 12 months
1
High, last 12 months
5
Known exploited
0
Search the list for Dovecot

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-0394
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-0394