PT-2026-65858 · Svarshavchik+3 · Courier-Imap+3
CVSS v4.0
7.1
High
| Vector | AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Courier IMAP versions prior to 6.0.1
Courier Mail Server versions prior to 2.0.2
Description
Authenticated IMAP users can cause the
imapd process to crash by sending deeply nested parenthesized SEARCH queries. The issue occurs because the SEARCH command parser, specifically the alloc search key() function in searchinfo.C, recursively processes nested parenthesized groups through a mutual recursion chain involving alloc search andlist() and alloc search notkey() without a depth limit. Since there is no overall command line length limit, a single IMAP command containing approximately 2500 nested parentheses can overflow the default 8MB stack, resulting in a SIGSEGV (segmentation fault), which is a specific error caused by accessing memory that the program does not have permission to access.Recommendations
Update Courier IMAP to version 6.0.1 or later.
Update Courier Mail Server to version 2.0.2 or later.
Exploit
Fix
Uncontrolled Recursion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Courier-Imap
Courier Mail Server
Courier
Courier-Libs