Every CVE Search/ Get API key

CVE-2026-0394

When dovecot has been configured to use per-domain passwd files, and they are placed one path...

5.3 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.43%Up 0.4 points since Mar 27, 2026
90%50%10%1%

What each source reports

CVE List Score used 5.3

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.

Record
CVE-2026-0394
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
EUVDEUVD-2026-16559 5.3

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.

Record
EUVD-2026-16559
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-xmp7-q4wc-cq3x 5.3

When dovecot has been configured to use per-domain passwd files, and they are placed one path...

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.

Record
GHSA-xmp7-q4wc-cq3x
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
NVD 5.3

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.

Record
CVE-2026-0394
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
OSV 5.3

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.

Record
CVE-2026-0394
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
OSVDEBIAN-CVE-2026-0394 5.3

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.

Record
DEBIAN-CVE-2026-0394
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
Show 6 moreShow less
OSVOESA-2026-1849 7.5

dovecot security update

Dovecot is an IMAP server for Linux/UNIX-like systemsa wrapper package that will just handle common things for all versioned dovecot packages.

Security Fix(es):

Dovecot has provided a script to use for attachment to text conversion. This script unsafely handles zip-style attachments. Attacker can use specially crafted OOXML documents to cause unintended files on the system to be indexed and subsequently ending up in FTS indexes. Do not use the provided script, instead, use something else like FTS tika. No publicly available exploits are known.(CVE-2025-59031)

ManageSieve AUTHENTICATE command crashes when using literal as SASL initial response. This can be used to crash ManageSieve service repeatedly, making it unavailable for other users. Control access to ManageSieve port, or disable the service if it's not needed. Alternatively upgrade to a fixed version. No publicly available exploits are known.(CVE-2025-59032)

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.(CVE-2026-0394)

Dovecot OTP authentication is vulnerable to replay attack under specific conditions. If auth cache is enabled, and username is altered in passdb, then OTP credentials can be cached so that same OTP reply is valid. An attacker able to observe an OTP exchange is able to log in as the user. If authentication happens over unsecure connection, switch to SCRAM protocol. Alternatively ensure the communcations are secured, and if possible switch to OAUTH2 or SCRAM. No publicly available exploits are known.(CVE-2026-27855)

Doveadm credentials are verified using direct comparison which is susceptible to timing oracle attack. An attacker can use this to determine the configured credentials. Figuring out the credential will lead into full access to the affected component. Limit access to the doveadm http service port, install fixed version. No publicly available exploits are known.(CVE-2026-27856)

Sending "NOOP (((...)))" command with 4000 parenthesis open+close results in ~1MB extra memory usage. Longer commands will result in client disconnection. This 1 MB can be left allocated for longer time periods by not sending the command ending LF. So attacker could connect possibly from even a single IP and create 1000 connections to allocate 1 GB of memory, which would likely result in reaching VSZ limit and killing the process and its other proxied connections. Attacker could connect possibly from even a single IP and create 1000 connections to allocate 1 GB of memory, which would likely result in reaching VSZ limit and killing the process and its other proxied connections. Install fixed version, there is no other remediation. No publicly available exploits are known.(CVE-2026-27857)

Attacker can send a specifically crafted message before authentication that causes managesieve to allocate large amount of memory. Attacker can force managesieve-login to be unavailable by repeatedly crashing the process. Protect access to managesieve protocol, or install fixed version. No publicly available exploits are known.(CVE-2026-27858)

A mail message containing excessive amount of RFC 2231 MIME parameters causes LMTP to use too much CPU. A suitably formatted mail message causes mail delivery process to consume large amounts of CPU time. Use MTA capabilities to limit RFC 2231…

Record
OESA-2026-1849
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2026-0394 5.3

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.

Record
UBUNTU-CVE-2026-0394
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVAZL-81695 No score

CVE-2026-0394 affecting package dovecot 2.3.20-1

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.

Record
AZL-81695
Updated
2026-11-05
OSVCLSA-2026-1787230282 No score

dovecot: Fix of CVE-2026-0394

  • CVE-2026-0394: auth: db-passwd-file: reject passwd-file paths that escape the configured prefix after variable expansion
Record
CLSA-2026-1787230282
Updated
2026-11-02
OSVCLSA-2026-1787334245 No score

dovecot: Fix of 2 CVEs

  • CVE-2026-0394: normalize expanded passwd-file paths and enforce their base directory to prevent path traversal
  • CVE-2025-59031: remove the unsafe decode2text.sh attachment conversion script
Record
CLSA-2026-1787334245
Updated
2026-11-02
OSVUSN-8136-2 No score

dovecot regression

USN-8136-1 fixed vulnerabilities in Dovecot. The update caused a regression on Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. This update fixes the problem.

We apologize for the inconvenience.

Original advisory details:

It was discovered that Dovecot incorrectly handled invalid base64 SASL data. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 25.10. (CVE-2025-59028)

It was discovered that Dovecot script decode2text.sh incorrectly handled zip files. An attacker could possibly use this issue to obtain sensitive information. (CVE-2025-59031)

It was discovered that Dovecot incorrectly handled certain AUTHENTICATE requests. An attacker could possibly use this issue to cause a denial of service. (CVE-2025-59032)

It was discovered that Dovecot incorrectly handled certain SQL based authentication. An attacker could possibly use this issue to bypass authentication. This issue only affected Ubuntu 25.10. (CVE-2026-24031)

It was discovered that Dovecot incorrectly handled certain LDAP based authentication. An attacker could possibly use this issue to bypass restrictions and allow probing of LDAP structure. This issue only affected Ubuntu 25.10. (CVE-2026-27860)

It was discovered that Dovecot is vulnerable to replay attack under certain conditions. An attacker could possibly use this issue to bypass authentication. (CVE-2026-27855)

It was discovered that Dovecot is vulnerable to a timing attack under certain conditions. An attacker could possibly use this issue to bypass authentication. (CVE-2026-27856)

It was discovered that Dovecot incorrectly handled certain IMAP login requests. An attacker could possibly use this issue to cause a denial of service. (CVE-2026-27857)

It was discovered that Dovecot incorrectly handled certain specially crafted messages. An attacker could possibly use this issue to cause a denial of service. (CVE-2026-27858)

It was discovered that Dovecot incorrectly handled certain specially crafted mail messages. An attacker could possibly use this issue to cause a denial of service. (CVE-2026-27859)

It was discovered that Dovecot incorrectly handles file paths. A attacker could possibly use this issue to perform a path traversal and obtain or modify arbitrary files. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2026-0394)

Record
USN-8136-2
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
dovecot
Azure Linux:3
through 2.3.20-1 None known
dovecot
TuxCare:AlmaLinux:9.6
before 1:2.3.16-15.el9.tuxcare.els4
1:2.3.16-15.el9.tuxcare.els4
dovecot-devel
TuxCare:AlmaLinux:9.6
before 1:2.3.16-15.el9.tuxcare.els4
1:2.3.16-15.el9.tuxcare.els4
dovecot-mysql
TuxCare:AlmaLinux:9.6
before 1:2.3.16-15.el9.tuxcare.els4
1:2.3.16-15.el9.tuxcare.els4
dovecot-pgsql
TuxCare:AlmaLinux:9.6
before 1:2.3.16-15.el9.tuxcare.els4
1:2.3.16-15.el9.tuxcare.els4
dovecot-pigeonhole
TuxCare:AlmaLinux:9.6
before 1:2.3.16-15.el9.tuxcare.els4
1:2.3.16-15.el9.tuxcare.els4
dovecot
TuxCare:AlmaLinux:9.2
From an advisory covering 2 CVEs
before 1:2.3.16-8.el9_2.tuxcare.els7
1:2.3.16-8.el9_2.tuxcare.els7
dovecot-devel
TuxCare:AlmaLinux:9.2
From an advisory covering 2 CVEs
before 1:2.3.16-8.el9_2.tuxcare.els7
1:2.3.16-8.el9_2.tuxcare.els7
dovecot-mysql
TuxCare:AlmaLinux:9.2
From an advisory covering 2 CVEs
before 1:2.3.16-8.el9_2.tuxcare.els7
1:2.3.16-8.el9_2.tuxcare.els7
dovecot-pgsql
TuxCare:AlmaLinux:9.2
From an advisory covering 2 CVEs
before 1:2.3.16-8.el9_2.tuxcare.els7
1:2.3.16-8.el9_2.tuxcare.els7
Show 18 moreShow less
Affected packages
PackageAffectedFixed
dovecot-pigeonhole
TuxCare:AlmaLinux:9.2
From an advisory covering 2 CVEs
before 1:2.3.16-8.el9_2.tuxcare.els7
1:2.3.16-8.el9_2.tuxcare.els7
dovecot
Debian:12
before 1:2.3.19.1+dfsg1-2.1+deb12u2, plus listed versions
1:2.3.19.1+dfsg1-2.11:2.3.19.1+dfsg1-2.1+deb12u1
1:2.3.19.1+dfsg1-2.1+deb12u2
dovecot
Debian:13
before 1:2.4.1+dfsg1-1
1:2.4.1+dfsg1-1
dovecot
Debian:14
before 1:2.4.1+dfsg1-1
1:2.4.1+dfsg1-1
dovecot
openEuler:22.03-LTS-SP4
From an advisory covering 8 CVEs
before 2.3.15-7.oe2203sp4
2.3.15-7.oe2203sp4
dovecot
openEuler:24.03-LTS
From an advisory covering 8 CVEs
before 2.3.20-4.oe2403sp3
2.3.20-4.oe2403sp3
dovecot
openEuler:24.03-LTS-SP1
From an advisory covering 8 CVEs
before 2.3.20-4.oe2403sp1
2.3.20-4.oe2403sp1
dovecot
openEuler:24.03-LTS-SP2
From an advisory covering 8 CVEs
before 2.3.20-4.oe2403sp2
2.3.20-4.oe2403sp2
dovecot
openEuler:24.03-LTS-SP3
From an advisory covering 8 CVEs
before 2.3.20-4.oe2403sp3
2.3.20-4.oe2403sp3
dovecot
openEuler:20.03-LTS-SP4
From an advisory covering 8 CVEs
before 2.3.15-7.oe2003sp4
2.3.15-7.oe2003sp4
dovecot
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
1:2.1.7-7ubuntu31:2.2.9-1ubuntu11:2.2.9-1ubuntu21:2.2.9-1ubuntu2.11:2.2.9-1ubuntu2.3
Show 7 moreShow less
1:2.2.9-1ubuntu2.41:2.2.9-1ubuntu2.51:2.2.9-1ubuntu2.61:2.2.9-1ubuntu2.6+esm11:2.2.9-1ubuntu2.6+esm21:2.2.9-1ubuntu2.6+esm31:2.2.9-1ubuntu2.6+esm4
None known
dovecot
Ubuntu:16.04:LTS
All versions, plus listed versions
1:2.2.18-2ubuntu21:2.2.22-1ubuntu11:2.2.22-1ubuntu21:2.2.22-1ubuntu2.11:2.2.22-1ubuntu2.2
Show 11 moreShow less
1:2.2.22-1ubuntu2.31:2.2.22-1ubuntu2.41:2.2.22-1ubuntu2.61:2.2.22-1ubuntu2.71:2.2.22-1ubuntu2.81:2.2.22-1ubuntu2.91:2.2.22-1ubuntu2.101:2.2.22-1ubuntu2.111:2.2.22-1ubuntu2.121:2.2.22-1ubuntu2.131:2.2.22-1ubuntu2.14
None known
dovecot
Ubuntu:18.04:LTS
All versions, plus listed versions
1:2.2.27-3ubuntu11:2.2.33.2-1ubuntu11:2.2.33.2-1ubuntu21:2.2.33.2-1ubuntu31:2.2.33.2-1ubuntu4
Show 8 moreShow less
1:2.2.33.2-1ubuntu4.11:2.2.33.2-1ubuntu4.21:2.2.33.2-1ubuntu4.31:2.2.33.2-1ubuntu4.41:2.2.33.2-1ubuntu4.51:2.2.33.2-1ubuntu4.61:2.2.33.2-1ubuntu4.71:2.2.33.2-1ubuntu4.8
None known
dovecot
Ubuntu:20.04:LTS
All versions, plus listed versions
1:2.3.4.1-5ubuntu31:2.3.7.2-1ubuntu11:2.3.7.2-1ubuntu21:2.3.7.2-1ubuntu31:2.3.7.2-1ubuntu3.1
Show 6 moreShow less
1:2.3.7.2-1ubuntu3.21:2.3.7.2-1ubuntu3.31:2.3.7.2-1ubuntu3.41:2.3.7.2-1ubuntu3.51:2.3.7.2-1ubuntu3.61:2.3.7.2-1ubuntu3.7
None known
dovecot
Ubuntu:22.04:LTS
before 1:2.3.16+dfsg1-3ubuntu2.7, plus listed versions
1:2.3.13+dfsg1-1ubuntu31:2.3.16+dfsg1-3ubuntu11:2.3.16+dfsg1-3ubuntu21:2.3.16+dfsg1-3ubuntu2.11:2.3.16+dfsg1-3ubuntu2.21:2.3.16+dfsg1-3ubuntu2.41:2.3.16+dfsg1-3ubuntu2.6
1:2.3.16+dfsg1-3ubuntu2.7
dovecot
Ubuntu:24.04:LTS
before 1:2.3.21+dfsg1-2ubuntu6.3, plus listed versions
1:2.3.20+dfsg1-1ubuntu31:2.3.21+dfsg1-2ubuntu11:2.3.21+dfsg1-2ubuntu21:2.3.21+dfsg1-2ubuntu41:2.3.21+dfsg1-2ubuntu51:2.3.21+dfsg1-2ubuntu61:2.3.21+dfsg1-2ubuntu6.11:2.3.21+dfsg1-2ubuntu6.2
1:2.3.21+dfsg1-2ubuntu6.3
dovecot
Ubuntu:22.04:LTS
before 1:2.3.16+dfsg1-3ubuntu2.8, plus listed versions
1:2.3.13+dfsg1-1ubuntu31:2.3.16+dfsg1-3ubuntu11:2.3.16+dfsg1-3ubuntu21:2.3.16+dfsg1-3ubuntu2.11:2.3.16+dfsg1-3ubuntu2.21:2.3.16+dfsg1-3ubuntu2.41:2.3.16+dfsg1-3ubuntu2.61:2.3.16+dfsg1-3ubuntu2.7
1:2.3.16+dfsg1-3ubuntu2.8
dovecot
Ubuntu:24.04:LTS
before 1:2.3.21+dfsg1-2ubuntu6.4, plus listed versions
1:2.3.20+dfsg1-1ubuntu31:2.3.21+dfsg1-2ubuntu11:2.3.21+dfsg1-2ubuntu21:2.3.21+dfsg1-2ubuntu41:2.3.21+dfsg1-2ubuntu5
Show 4 moreShow less
1:2.3.21+dfsg1-2ubuntu61:2.3.21+dfsg1-2ubuntu6.11:2.3.21+dfsg1-2ubuntu6.21:2.3.21+dfsg1-2ubuntu6.3
1:2.3.21+dfsg1-2ubuntu6.4

History

History
RecordedChangedSources
affected
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-0394 is a medium vulnerability (CVSS 5.3) in Dovecot, published March 27, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.43%, the 37th percentile. Fixed in dovecot 1:2.3.16-15.el9.tuxcare.els4.

References

Show 14 moreShow less
This page doesn't list everything

Left out here: the rest of 1 source description. The JSON record has them.

MoveEnter Open