Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to imapd with valid IMAP credentials
-
DeliveryCraft SEARCH with ~2500 nested parentheses
-
ExploitTrigger unbounded recursion in alloc_search_key
-
ExecutionOverflow 8MB stack causing SIGSEGV
-
ImpactRepeat to sustain denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires an authenticated IMAP session (CVSS PR:L) - the attacker must possess valid mailbox credentials - but no other special configuration: Courier IMAP enforces no command-line length limit and no SEARCH recursion depth limit by default, so a single SEARCH command with approximately 2500 nested parentheses against a default configuration is sufficient to overflow the 8MB default stack. Limiting factors are the authentication requirement and the availability-only impact (no code execution or data disclosure); there is no user-interaction requirement and no non-default feature needed. The default 8MB stack size is the relevant threshold - environments with a smaller configured stack would fall over at fewer nesting levels. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H, score 7.1) is internally consistent with the description: network-reachable, low complexity, requires low privilege (a valid IMAP login), and impacts availability only. No EPSS score was provided and the CVE is not listed in CISA KEV, so there is no evidence of active exploitation; it should be treated as a DoS-only risk rather than a high-urgency RCE. The chief mitigating factor is that PR:L means an attacker needs valid mailbox credentials, which limits exposure to authorized users or attackers who already hold a compromised account - but on multi-user mail hosts any single tenant can repeatedly crash the shared imapd, so it is a meaningful availability concern for shared hosting. Confidence in the mechanism is high because the vendor commit diff directly corroborates the root cause and fix; the practical risk is moderate and bounded by the authentication requirement and the absence of confidentiality/integrity impact. |
| Exploit ScenarioDerived | An attacker with any valid IMAP mailbox login (for example, a low-privilege tenant on a shared mail host or a user of a stolen credential) opens an authenticated session and issues a single SEARCH command containing roughly 2500 nested parenthesized groups. The recursive parser overflows the 8MB stack and the imapd process dies with SIGSEGV, and the command can be repeated to sustain denial of service against other users on the same server. No public exploit code is identified, but the vendor describes exploitation as trivial given the absence of any length or depth limit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 29, 2026
Denial of service in Courier IMAP before 6.0.1 and Courier Mail Server before 2.0.2 lets any authenticated IMAP user crash the imapd process by sending a single SEARCH command containing deeply nested parenthesized groups. Because the SEARCH parser recurses without a depth limit and Courier enforces no command-line length cap, roughly 2500 nested parentheses exhaust the 8MB default stack and trigger a SIGSEGV. There is no public exploit identified at time of analysis, but the vendor commit and advisory describe exploitation as trivial, and it affects availability only (no data exposure or code execution).
RemediationAI
Vendor-released patch: upgrade Courier IMAP to 6.0.1 or Courier Mail Server to 2.0.2, both of which add hard caps (max ~1000 nested search constructs) that return an IMAP protocol error instead of exhausting the stack - this is the primary and complete fix (see the release tags and commit b5b5581 referenced above, and the VulnCheck advisory at https://www.vulncheck.com/advisories/courier-imap-mail-server-stack-overflow-dos-via-nested-search-queries). If immediate patching is not possible, compensating controls include restricting IMAP access to trusted networks or VPN so that only known accounts can reach imapd, tightening account provisioning to reduce the pool of authenticated users who could abuse SEARCH, placing an IMAP-aware proxy or filter in front of imapd to reject abnormally long or deeply parenthesized SEARCH command lines, and configuring the service manager to auto-restart imapd on crash to limit outage duration - noting that restart-based recovery does not stop repeated abuse and network restriction reduces legitimate remote access.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Courier IMAP is an open-source IMAP/POP mail server component of the Courier Mail Server suite. The flaw is a classic CWE-674 (Uncontrolled Recursion) stack exhaustion: alloc_search_key() in imap/searchinfo.C descends recursively on each nested parenthesized group, forming a mutual-recursion chain with alloc_search_andlist() and alloc_search_notkey(). With no recursion depth limit and no overall IMAP command-line length limit, each level of nesting consumes a stack frame until the process's 8MB default thread stack overflows. The vendor fix (commit b5b5581) introduces hard caps: a per-parse counter that returns an error past 1000 nested constructs, a searchlist size guard that throws past 1000 entries, and try/catch guards around alloc_parsesearch() in imapd.C and smap.C so the parser returns a protocol error instead of crashing.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable IMAP with low complexity, but a valid mailbox login is required (PR:L); impact is availability-only DoS, so C:N/I:N/A:H.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Courier IMAP (versions before 6.0.1) and Courier Mail Server (versions before 2.0.2) contain a denial-of-service vulnerability; no public exploit identified at time of analysis, but exploitation requires only valid user credentials and basic protocol knowledge. Any mailbox user can crash the email service, directly threatening infrastructure availability and business continuity. Organizations running these versions must implement immediate defensive controls and plan urgent patching.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict IMAP access to trusted networks or corporate VPN only; (2) Implement connection-rate limiting at the IMAP service level to prevent rapid exploitation attempts; (3) Configure service monitoring with automatic restart capability for unexpected imapd process crashes; (4) Reduce user account permissions to least-privilege and disable IMAP for accounts that do not require it; (5) Establish monitoring of Courier project advisories and community channels for patch availability announcements.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-50414
GHSA-mcmr-g7gg-p242
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB