The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-0394

CVE-2026-0394: Dovecot Path Traversal Vulnerability

CVE-2026-0394 is a path traversal flaw in Dovecot that allows attackers to read sensitive files like /etc/passwd through per-domain passwd file configurations. This post covers technical details, affected versions, and mitigations.

Published: April 3, 2026

CVE-2026-0394 Overview

CVE-2026-0394 is a path traversal vulnerability (CWE-22) affecting Dovecot mail server when configured to use per-domain passwd files. The vulnerability arises when these files are placed one path component above /etc, or when a slash has been added to allowed characters. In these configurations, a malicious domain component that is directory partial can trigger path traversal, allowing unauthorized access to sensitive files such as /etc/passwd.

Critical Impact

Attackers can exploit this path traversal vulnerability to read sensitive system files like /etc/passwd, potentially enabling unauthorized authentication or making system users appear as valid mail users.

Affected Products

  • Dovecot mail server (configurations using per-domain passwd files)
  • Dovecot installations with passwd files placed above /etc directory
  • Dovecot configurations with slash added to allowed characters

Discovery Timeline

  • 2026-03-27 - CVE CVE-2026-0394 published to NVD
  • 2026-03-30 - Last updated in NVD database

Technical Details for CVE-2026-0394

Vulnerability Analysis

This path traversal vulnerability exists within Dovecot's authentication mechanism when processing per-domain passwd file paths. The flaw allows attackers to manipulate the domain component of authentication requests to traverse directory structures and access files outside the intended authentication directory.

When Dovecot is configured to store user credentials in per-domain passwd files (e.g., /etc/dovecot/auth/%d/passwd), the server uses the domain portion of the user's email address to construct the file path. If the passwd files are placed one directory level above /etc, or if the configuration allows slash characters in domain names, an attacker can craft a malicious domain value containing directory traversal sequences.

The vulnerability can lead to two primary security impacts: if the accessed file (such as /etc/passwd) contains password hashes, attackers may authenticate using those credentials; alternatively, if the file is used as a userdb source, system accounts could unexpectedly become valid mail users, potentially exposing internal system accounts to mail services.

Root Cause

The root cause is insufficient validation of the domain component when constructing file paths for per-domain passwd files. The application fails to properly sanitize or validate domain values before using them in file path construction, allowing directory traversal sequences to escape the intended authentication directory. This is particularly problematic when passwd files are stored in locations that make the /etc/passwd file reachable via relative path manipulation, or when the Dovecot configuration explicitly permits slash characters in domain names.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by attempting authentication with a specially crafted email address where the domain portion contains directory traversal sequences (such as ../ patterns). When Dovecot processes this authentication request, it constructs a file path using the malicious domain value, inadvertently accessing files outside the intended directory structure.

For example, if passwd files are configured at a location like /auth/%d/passwd and the attacker provides a domain value of ../etc, the resulting path could resolve to /etc/passwd instead of a legitimate domain-specific authentication file.

The vulnerability allows read access to files ending with passwd that become reachable through path traversal, enabling information disclosure of sensitive authentication data.

Detection Methods for CVE-2026-0394

Indicators of Compromise

  • Authentication attempts with unusual domain patterns containing ../ or similar directory traversal sequences
  • Log entries showing authentication lookups for domain values with path separator characters
  • Unexpected successful authentications for system user accounts through mail services
  • Authentication attempts referencing non-existent or suspicious domain values

Detection Strategies

  • Monitor Dovecot authentication logs for domain values containing path traversal patterns (../, ..%2f, etc.)
  • Implement log analysis rules to detect authentication attempts with abnormally long or suspicious domain components
  • Review authentication success logs for accounts that match system usernames from /etc/passwd
  • Enable verbose logging for authentication passdb lookups to capture path construction details

Monitoring Recommendations

  • Configure SIEM rules to alert on authentication attempts with directory traversal indicators in domain fields
  • Establish baseline monitoring for Dovecot authentication patterns and alert on deviations
  • Implement file integrity monitoring on sensitive system files like /etc/passwd to detect unauthorized access attempts
  • Review Dovecot configuration files periodically to ensure passwd file locations follow security best practices

How to Mitigate CVE-2026-0394

Immediate Actions Required

  • Upgrade Dovecot to a fixed version that addresses this path traversal vulnerability
  • Review current Dovecot authentication configuration for per-domain passwd file usage
  • Relocate per-domain passwd files to a secure location such as /etc/dovecot/auth/%d to prevent path traversal to system files
  • Audit authentication logs for any signs of exploitation attempts

Patch Information

Upgrade to a fixed version of Dovecot as recommended by the vendor. For detailed patch information and affected versions, refer to the Open-Xchange Security Advisory. No publicly available exploits are currently known for this vulnerability.

Workarounds

  • Relocate per-domain passwd files to a directory structure that prevents path traversal attacks (e.g., /etc/dovecot/auth/%d)
  • Switch to an alternative authentication scheme that does not rely on file paths constructed from user-controlled input
  • Remove slash characters from the list of allowed characters in domain names if previously configured
  • Implement input validation at the authentication layer to reject domain values containing directory traversal patterns
bash
# Recommended configuration - move passwd files to secure location
# In dovecot.conf or auth configuration:
passdb {
  driver = passwd-file
  args = /etc/dovecot/auth/%d/passwd
}

userdb {
  driver = passwd-file
  args = /etc/dovecot/auth/%d/passwd
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechDovecot

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Open-Xchange Security Advisory
  • Related CVEs
  • CVE-2025-59031: Dovecot FTS Script Info Disclosure Flaw

  • CVE-2026-27860: Dovecot LDAP Auth Bypass Vulnerability

  • CVE-2026-24031: Dovecot Auth Bypass Vulnerability

  • CVE-2026-27858: ManageSieve DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English