CVE-2026-67194: Uncontrolled Recursion in svarshavchik Courier IMAP
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.
AI Analysis
Technical Summary
Courier IMAP versions prior to 6.0.1 and Courier Mail Server versions prior to 2.0.2 contain a vulnerability where the SEARCH command parser (specifically the alloc_search_key function in searchinfo.C) recursively processes nested parenthesized SEARCH queries without limiting recursion depth. This mutual recursion with alloc_search_andlist() and alloc_search_notkey() can be exploited by an authenticated IMAP user to send a single command with approximately 2500 nested parentheses, overflowing the 8MB stack and causing the imapd process to crash with a segmentation fault (SIGSEGV). The lack of an overall command line length limit facilitates exploitation.
Potential Impact
An authenticated IMAP user can cause a denial of service by crashing the imapd process through sending a specially crafted SEARCH command with deeply nested parentheses. This results in service disruption but does not indicate privilege escalation or data compromise from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is documented in the provided information. Until a patch is available, restrict authenticated user capabilities where possible and monitor for unusual SEARCH command usage patterns.
CVE-2026-67194: Uncontrolled Recursion in svarshavchik Courier IMAP
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.
CVSS v4.0
Score 7.1high
Affected software
svarshavchik
Courier IMAP
svarshavchik
Courier Mail Server
pkg:github/Courier Mail ServerRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Courier IMAP versions prior to 6.0.1 and Courier Mail Server versions prior to 2.0.2 contain a vulnerability where the SEARCH command parser (specifically the alloc_search_key function in searchinfo.C) recursively processes nested parenthesized SEARCH queries without limiting recursion depth. This mutual recursion with alloc_search_andlist() and alloc_search_notkey() can be exploited by an authenticated IMAP user to send a single command with approximately 2500 nested parentheses, overflowing the 8MB stack and causing the imapd process to crash with a segmentation fault (SIGSEGV). The lack of an overall command line length limit facilitates exploitation.
Potential Impact
An authenticated IMAP user can cause a denial of service by crashing the imapd process through sending a specially crafted SEARCH command with deeply nested parentheses. This results in service disruption but does not indicate privilege escalation or data compromise from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is documented in the provided information. Until a patch is available, restrict authenticated user capabilities where possible and monitor for unusual SEARCH command usage patterns.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-28T16:06:49.774Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a6a335f9c2644c7f8cc8575
Added to database: 07/29/2026, 17:07:43 UTC
Last enriched: 08/15/2026, 13:49:17 UTC
Last updated: 09/11/2026, 19:31:57 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.