Skip to main content
CVE-2026-0394VulnerabilityPublished Updated

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

Affects dovecotSource GCVE Database

0
Compare
Authoritative record:CVE-2026-0394· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium · fixed in 1:2.3.16+dfsg1-3ubuntu2.7 : update dovecot when convenient.

Data as of 24 Nov 2026, 20:12 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1:2.3.16+dfsg1-3ubuntu2.7, 1:2.3.21+dfsg1-2ubuntu6.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade the Ubuntu dovecot to 1:2.3.16+dfsg1-3ubuntu2.7 (package) or 1:2.3.21+dfsg1-2ubuntu6.3 (package).

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSdovecotpkg:deb/ubuntu/dovecot?arch=source&distro=nobleOther threatsAffected
  • <1:2.3.21+dfsg1-2ubuntu6.3
Fixed in
  • 1:2.3.21+dfsg1-2ubuntu6.3
Ubuntu 22.04 LTSdovecotpkg:deb/ubuntu/dovecot?arch=source&distro=jammyOther threatsAffected
  • <1:2.3.16+dfsg1-3ubuntu2.7
Fixed in
  • 1:2.3.16+dfsg1-3ubuntu2.7
Ubuntu 20.04 LTSdovecotpkg:deb/ubuntu/dovecot?arch=source&distro=focalOther threatsAffected
  • 1:2.3.4.1-5ubuntu3 – 1:2.3.7.2-1ubuntu3.7
11 affected builds
Fixed in–
Ubuntu 18.04 LTSdovecotpkg:deb/ubuntu/dovecot?arch=source&distro=bionicOther threatsAffected
  • 1:2.2.27-3ubuntu1 – 1:2.2.33.2-1ubuntu4.8
13 affected builds
Fixed in–
Ubuntu 16.04 LTSdovecotpkg:deb/ubuntu/dovecot?arch=source&distro=xenialOther threatsAffected
  • 1:2.2.18-2ubuntu2 – 1:2.2.22-1ubuntu2.14
16 affected builds
Fixed in–
Ubuntu Pro 14.04 LTSdovecotpkg:deb/ubuntu/dovecot?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • 1:2.1.7-7ubuntu3 – 1:2.2.9-1ubuntu2.6+esm4
12 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…