Description
Courier IMAP before 6.0.1 and Courier Mail Server before 2.0.2 allow authenticated IMAP users to crash the imapd process via deeply nested parenthesized SEARCH queries. The SEARCH command parser (alloc_search_key in searchinfo.C) recursively descends on nested parenthesized groups through a mutual recursion chain with alloc_search_andlist() and alloc_search_notkey(), with no depth limit. Courier IMAP has no overall command line length limit, making exploitation trivial. A single IMAP command with ~2500 nested parentheses overflows the 8MB default stack, causing SIGSEGV.
Published: 2026-07-29
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Courier IMAP and Courier Mail Server versions prior to 6.0.1 and 2.0.2 contain a stack‑overflow flaw that occurs when an authenticated IMAP client sends a SEARCH command containing deep nesting of parenthesized search keys. The recursive descent parser in alloc_search_key, along with alloc_search_andlist() and alloc_search_notkey(), has no explicit depth limit, allowing an attacker to craft a single command with roughly 2,500 nested parentheses that overwhelms the 8 MB default stack and triggers a segmentation fault. The resulting crash causes the imapd process to terminate, temporarily disrupting service for all users and representing a denial‑of‑service vulnerability classified under CWE‑674.

Affected Systems

The affected software is Courier IMAP distributed by svarshavchik, which implements the IMAP protocol. The vulnerability also exists in Courier Mail Server, the companion POP3/SMTP service, from the same vendor. Any installation running Courier IMAP version 5.x or earlier, or Courier Mail Server version 1.x or earlier, is affected. Upgrading to the public releases 6.0.1 for Courier IMAP and 2.0.2 for Courier Mail Server removes the flaw.

Risk and Exploitability

The CVSS score of 7.1 indicates a high impact denial‑of‑service risk. The EPSS score is less than 1%, suggesting that exploitation is relatively rare, and the vulnerability is not currently listed in CISA’s KEV catalog. Attackers would need authenticated IMAP access, but once credentials are obtained they can deploy the nested SEARCH query to trigger the crash. The lack of a depth or line‑length limit means the attack can be executed trivially once the connection is established, with no external network restrictions required.

Generated by OpenCVE AI on August 3, 2026 at 13:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the updated Courier IMAP 6.0.1 release and Courier Mail Server 2.0.2 release from the vendor or distribution repository and install the new binaries.
  • Restart the courier-imap and courier-mailserver services so the patched code is loaded.
  • If an immediate upgrade is not possible, limit IMAP access to trusted hosts and implement a reverse proxy or firewall rule that rejects requests containing an excessive number of nested parentheses or imposes a length limit on SEARCH command arguments to prevent the stack overflow.
  • Monitor system logs for SIGSEGV events or repeated process restarts caused by malformed SEARCH queries, and configure alerting to detect such denial‑of‑service behavior.

Generated by OpenCVE AI on August 3, 2026 at 13:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Courier-mta
Courier-mta courier Mail Server
CPEs cpe:2.3:a:courier-mta:courier_mail_server:*:*:*:*:*:*:*:*
Vendors & Products Courier-mta
Courier-mta courier Mail Server

Thu, 30 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
First Time appeared Svarshavchik
Svarshavchik courier Imap
Svarshavchik courier Mail Server
Vendors & Products Svarshavchik
Svarshavchik courier Imap
Svarshavchik courier Mail Server

Wed, 29 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 29 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Description Courier IMAP before 6.0.1 and Courier Mail Server before 2.0.2 allow authenticated IMAP users to crash the imapd process via deeply nested parenthesized SEARCH queries. The SEARCH command parser (alloc_search_key in searchinfo.C) recursively descends on nested parenthesized groups through a mutual recursion chain with alloc_search_andlist() and alloc_search_notkey(), with no depth limit. Courier IMAP has no overall command line length limit, making exploitation trivial. A single IMAP command with ~2500 nested parentheses overflows the 8MB default stack, causing SIGSEGV.
Title Courier IMAP < 6.0.1 Mail Server < 2.0.2 Stack Overflow DoS via Nested SEARCH Queries
Weaknesses CWE-674
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Courier-mta Courier Mail Server
Svarshavchik Courier Imap Courier Mail Server
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:50:49.429Z

Reserved: 2026-07-28T16:06:49.774Z

Link: CVE-2026-67194

cve-icon Vulnrichment

Updated: 2026-07-29T18:07:04.575Z

cve-icon NVD

Status : Deferred

Published: 2026-07-29T17:16:54.017

Modified: 2026-07-30T20:11:09.180

Link: CVE-2026-67194

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T13:15:05Z

Weaknesses