Skip to main content

Courier IMAP EUVDEUVD-2026-50414

| CVE-2026-67194 HIGH
Uncontrolled Recursion (CWE-674)
2026-07-29 disclosure@vulncheck.com GHSA-mcmr-g7gg-p242
7.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to imapd with valid IMAP credentials
  2. Delivery
    Craft SEARCH with ~2500 nested parentheses
  3. Exploit
    Trigger unbounded recursion in alloc_search_key
  4. Execution
    Overflow 8MB stack causing SIGSEGV
  5. Impact
    Repeat 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Courier Mail Server 0 <2.0.2
Courier IMAP 0 <6.0.1

Affected Packages

euvd courier_imap fix: 6.0.1
euvd courier_mail_server fix: 2.0.2

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

Vendor (vulncheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 29, 2026 - 18:17 EUVD
CVE Published
Jul 29, 2026 - 17:16 cve.org
HIGH 7.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
niche open-source IMAP server, modest footprint versus Dovecot/Exchange
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy