Vulnerability record · CVE-2004-1211 · published 10 January 2005
CVE-2004-1211: Mercury/32 IMAP service buffer overflows via long command arguments
David Harris · Mercury
Mercury/32 4.01a contains multiple buffer overflows in its IMAP service, triggered by long arguments to fourteen different IMAP commands including EXAMINE, SUBSCRIBE, STATUS, APPEND, FETCH, SEARCH, and CREATE. A remote authenticated user can crash the service and possibly execute arbitrary code, making this a serious flaw for any deployment exposing the IMAP service.
Description
Multiple buffer overflows in the IMAP service in Mercury/32 4.01a allow remote authenticated users to cause a denial of service (application crash) and possibly execute arbitrary code via long arguments to the (1) EXAMINE, (2) SUBSCRIBE, (3) STATUS, (4) APPEND, (5) CHECK, (6) CLOSE, (7) EXPUNGE, (8) FETCH, (9) RENAME, (10) DELETE, (11) LIST, (12) SEARCH, (13) CREATE, or (14) UNSUBSCRIBE commands.
AV:N/AC:L/Au:N/C:C/I:C/A:C
Automated analysis
high priorityThe flaw allows remote code execution with a very high EPSS score and public exploit availability, though it requires valid IMAP credentials and affects an old product version.
What it is
Mercury/32 4.01a contains multiple buffer overflows in its IMAP service, triggered by long arguments to fourteen different IMAP commands including EXAMINE, SUBSCRIBE, STATUS, APPEND, FETCH, SEARCH, and CREATE. A remote authenticated user can crash the service and possibly execute arbitrary code, making this a serious flaw for any deployment exposing the IMAP service.
Impact
An attacker with valid IMAP credentials can crash the mail service and potentially execute arbitrary code in the context of the Mercury/32 process. Successful code execution would give the attacker control over the mail server and any data it handles.
Attack surface
The flaw is reached over the network through the IMAP service; the CVSS vector indicates no authentication is required, but the description states the attacker must be a remote authenticated user, so valid IMAP credentials are needed. No user interaction is required beyond sending crafted IMAP commands.
Exploitation
CVE-2004-1211 is not listed in CISA KEV, but EPSS is very high at 0.72459 (99.4th percentile), and a reference is tagged Exploit, indicating public exploit code exists.
What to do
- Upgrade Mercury/32 to a version later than 4.01a that fixes the IMAP buffer overflows.
- If upgrading is not immediately possible, restrict IMAP access to trusted networks or disable the IMAP service until patched.
- Enforce strong, unique credentials and monitor for unusual IMAP command patterns from authenticated accounts.
- Apply the vendor patch referenced in the SecurityFocus advisory (BID 11775).
Detection
- Monitor IMAP server logs for abnormally long arguments to EXAMINE, SUBSCRIBE, STATUS, APPEND, CHECK, CLOSE, EXPUNGE, FETCH, RENAME, DELETE, LIST, SEARCH, CREATE, or UNSUBSCRIBE commands.
- Alert on Mercury/32 process crashes or restarts correlated with IMAP traffic.
- Use network IDS/IPS signatures for oversized IMAP command arguments targeting the Mercury/32 service.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2004-1211 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2004-1211), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.