CVE-2026-40017

dovecot: Dovecot: Denial of Service via crafted IMAP message headers

Published Aug 28, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
An attacker that can send mail to a user can craft a message header whose values are chosen to collide in an internal hash table, which makes the IMAP THREAD command consume CPU disproportionate to the size of the message. This is a separate issue from CVE-2026-40014 and is not addressed by that fix. Whenever a mail client issues a THREAD command on the affected mailbox, this can cause degradation or denial of service for IMAP. Monitor system for abnormal CPU usage, kill the offending process and remove the offending message from the affected mailbox. Update to non-vulnerable version. No publicly available exploits are known.

Analysis

AI-generated

Technical impact

An attacker with the ability to send email to a target user can craft message headers that collide in an internal hash table. When the affected mail client issues an IMAP THREAD command on that mailbox, the server performs excessive CPU work that is disproportionate to the message size. This can degrade performance or lead to a denial of service for the IMAP service. The weakness stems from improper resource control in the handling of hash collisions, identified as CWE‑400, and inadequate memory allocation limits, identified as CWE‑770.

Affected Systems

The issue affects the Open‑Xchange Dovecot CE and Pro releases. Users of Ou‑Xchange’s OX Dovecot that have not upgraded to a patched version are vulnerable. No specific version range is detailed in the advisory, so all current installations remain at risk until a non‑vulnerable release is applied.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. The EPSS score of 0.00272 (less than 1%) suggests that the likelihood of exploitation is low, and coupled with the absence of publicly known exploits and its exclusion from the CISA KEV catalog, widespread exploitation appears unlikely at present. This weakness includes improper resource control (CWE‑400) and insufficient memory allocation limits (CWE‑770). Nonetheless, an attacker who can send mail to the target can still trigger the CPU drain by issuing a THREAD command, especially if the mailbox contains messages with the crafted colliding headers. The attack vector is likely the mail delivery path combined with IMAP command usage, requiring the attacker to control mail sent to the victim's mailbox.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OX Dovecot CE or Pro to a version that contains the fix for the header collision issue
  • If an upgrade cannot be performed immediately, monitor the IMAP process for abnormal CPU consumption, terminate the process when necessary, and remove the offending message from the mailbox
  • Avoid sending or receiving messages that include colliding header values by sanitizing or filtering incoming mail to prevent the hash collision from occurring

Generated by OpenCVE AI on September 1, 2026 at 15:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4873-1 dovecot security update
Debian DSA Debian DSA DSA-6526-1 dovecot security update
History
Type Values Removed Values Added
First Time appeared Open-xchange
Open-xchange ox Dovecot Ce
Open-xchange ox Dovecot Pro
Vendors & Products Open-xchange
Open-xchange ox Dovecot Ce
Open-xchange ox Dovecot Pro
Type Values Removed Values Added
Title CPU Exhaustion via Crafted Email Header Collision Triggering IMAP THREAD Denial of Service dovecot: Dovecot: Denial of Service via crafted IMAP message headers
Weaknesses CWE-770
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title CPU Exhaustion via Crafted Email Header Collision Triggering IMAP THREAD Denial of Service
Type Values Removed Values Added
Description An attacker that can send mail to a user can craft a message header whose values are chosen to collide in an internal hash table, which makes the IMAP THREAD command consume CPU disproportionate to the size of the message. This is a separate issue from CVE-2026-40014 and is not addressed by that fix. Whenever a mail client issues a THREAD command on the affected mailbox, this can cause degradation or denial of service for IMAP. Monitor system for abnormal CPU usage, kill the offending process and remove the offending message from the affected mailbox. Update to non-vulnerable version. No publicly available exploits are known.
Weaknesses CWE-400
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
OX
Published
Updated
Aug 28, 2026, 3:02 PM
Reserved
Apr 8, 2026, 9:59 AM
Status
Deferred
Published
Aug 28, 2026, 12:16 PM
Modified
Sep 3, 2026, 6:13 PM
Severity
Moderate
Public date
Aug 28, 2026, 10:12 AM