Skip to content
Heist/ feed
Back to feed
MediumFix available

dovecot — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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, 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.

Products
dovecot
Affected versions
1:2.3.19.1+dfsg1-2.1, 1:2.3.19.1+dfsg1-2.1+deb12u1
Fixed versions
1:2.3.19.1+dfsg1-2.1+deb12u2, 1:2.4.1+dfsg1-1
CVEs
CVE-2026-0394
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:45 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-0394

core-osv · Original source

Published 27 Mar 2026, 09:16 UTC

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.

osv:DEBIAN-CVE-2026-0394

dovecot

Fixed versions: 1:2.3.19.1+dfsg1-2.1+deb12u2

dovecot

Fixed versions: 1:2.4.1+dfsg1-1

dovecot

Fixed versions: 1:2.4.1+dfsg1-1

Complete source record
{
  "id": "2315b4a9d2b738838da1c1c0d2794a3440a10fdb4d09125b4784cb91977f28d6",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-0394",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-0394",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-0394",
    "products": [
      {
        "name": {
          "value": "dovecot",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1:2.3.19.1+dfsg1-2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dovecot",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:2.4.1+dfsg1-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "dovecot",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:2.4.1+dfsg1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-0394",
      "aliases": [
        "DEBIAN-CVE-2026-0394"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:2.3.19.1+dfsg1-2.1+deb12u2"
                }
              ]
            }
          ],
          "package": {
            "name": "dovecot",
            "purl": "pkg:deb/debian/dovecot?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1:2.3.19.1+dfsg1-2.1",
            "1:2.3.19.1+dfsg1-2.1+deb12u1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-0394.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:2.4.1+dfsg1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "dovecot",
            "purl": "pkg:deb/debian/dovecot?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-0394.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:2.4.1+dfsg1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "dovecot",
            "purl": "pkg:deb/debian/dovecot?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-0394.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-27T09:47:36.536835311Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-0394"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-0394"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-0394",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 461142,
  "published_at": "2026-03-27T09:16:19.283+00:00"
}