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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-40020

CVE-2026-40020: Dovecot IMAP Auth Bypass Vulnerability

CVE-2026-40020 is an authentication bypass flaw in Dovecot IMAP that allows attackers to inject permissions via SETACL commands, enabling folder spam to users. This article covers technical details, impact, and mitigation.

Published: May 17, 2026

CVE-2026-40020 Overview

CVE-2026-40020 is an access control vulnerability in Dovecot, the open-source Internet Message Access Protocol (IMAP) and Post Office Protocol (POP3) server maintained by Open-Xchange. An authenticated attacker can issue the IMAP SETACL command to inject the anyone permission into a user's dovecot-acl file, even when the server is configured with imap_acl_allow_anyone=no. The configuration directive intended to block this behavior fails to enforce the restriction, allowing folder sharing to all users on the system. The impact is limited to spamming folders to other users and does not grant unexpected read or write access to mailbox contents [CWE-284].

Critical Impact

Authenticated IMAP users can bypass the imap_acl_allow_anyone=no setting to share arbitrary folders with every user on the server, enabling folder-spam abuse.

Affected Products

  • Open-Xchange Dovecot (versions prior to the fixed release referenced in advisory oxdc-adv-2026-0002)
  • Dovecot deployments with the ACL plugin enabled
  • Mail systems relying on imap_acl_allow_anyone=no to restrict folder sharing

Discovery Timeline

  • 2026-05-12 - CVE-2026-40020 published to the National Vulnerability Database (NVD)
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-40020

Vulnerability Analysis

The flaw resides in Dovecot's IMAP ACL plugin, which implements RFC 4314 access control list semantics. The plugin exposes the SETACL command, allowing mailbox owners to grant rights to specific identifiers including the special anyone identifier that represents all authenticated users. Administrators can disable assignment of the anyone identifier by setting imap_acl_allow_anyone=no in the Dovecot configuration. The vulnerability arises because the server fails to validate this configuration directive when processing SETACL commands containing the anyone identifier. As a result, the rights are written to the user's dovecot-acl file regardless of the policy setting. The functional consequence is that every authenticated user on the mail server can subscribe to or see the shared folder, enabling unsolicited folder broadcasts.

Root Cause

The root cause is improper access control enforcement [CWE-284] within the IMAP ACL command handler. The configuration check for imap_acl_allow_anyone is either missing or bypassed in the code path that persists ACL entries to disk. The server accepts the SETACL request, updates the per-user dovecot-acl file, and returns a successful response without rejecting the prohibited identifier.

Attack Vector

An attacker must hold valid IMAP credentials on the target Dovecot server. After authenticating, the attacker issues a SETACL command against a mailbox they own, specifying the anyone identifier and the rights they wish to propagate. The injected ACL entry causes the folder to become visible or subscribable to all users on the server, which can be used to push unwanted content into other users' mailbox listings. No additional privileges, user interaction, or chained exploits are required, though the attack complexity is rated high because preconditions on mailbox state must be met. The vulnerability does not grant the attacker access to other users' messages.

Detection Methods for CVE-2026-40020

Indicators of Compromise

  • Entries containing the anyone identifier inside per-user dovecot-acl files on servers configured with imap_acl_allow_anyone=no.
  • IMAP protocol logs showing SETACL commands that specify the anyone or anonymous identifier.
  • User reports of unfamiliar shared folders appearing in their mailbox folder list.

Detection Strategies

  • Enable IMAP command logging in Dovecot and alert on any SETACL command referencing the anyone identifier when the policy is set to deny it.
  • Run periodic filesystem audits across mail storage to detect dovecot-acl files that contain the anyone identifier.
  • Correlate spikes in folder subscriptions across multiple user accounts to a single originating mailbox owner.

Monitoring Recommendations

  • Forward Dovecot logs to a centralized logging or SIEM platform and build a detection for ACL modification events.
  • Monitor authentication logs for IMAP sessions that issue ACL administrative commands outside of normal user behavior.
  • Track creation of new shared namespaces or folders that propagate to large numbers of users in a short time window.

How to Mitigate CVE-2026-40020

Immediate Actions Required

  • Upgrade Dovecot to the fixed version identified in the Open-Xchange Security Advisory.
  • Audit existing dovecot-acl files for unauthorized anyone entries and remove them.
  • Notify users to report any unexpected shared folders so administrators can investigate the source mailbox.

Patch Information

Open-Xchange has published the fix in advisory oxdc-adv-2026-0002. Administrators should install the patched Dovecot release referenced in the advisory. No publicly available exploits are known at the time of publication.

Workarounds

  • Disable the IMAP ACL plugin entirely if shared folder functionality is not required in the deployment.
  • Restrict IMAP access to trusted user populations using network-layer controls until the patched release is deployed.
  • Periodically scan and prune dovecot-acl files for anyone identifiers as a compensating control.
bash
# Configuration example: audit dovecot-acl files for anyone entries
find /var/mail -name 'dovecot-acl' -exec grep -lE '^anyone|^anonymous' {} \;

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechDovecot

  • SeverityLOW

  • CVSS Score3.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-284
  • Technical References
  • Open-Xchange Security Advisory
  • Related CVEs
  • CVE-2026-27860: Dovecot LDAP Auth Bypass Vulnerability

  • CVE-2026-24031: Dovecot Auth Bypass Vulnerability

  • CVE-2026-27855: Dovecot OTP Auth Bypass Vulnerability

  • CVE-2026-33603: Dovecot SCRAM TLS Channel Binding Bypass
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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