Negative Array Index Memory Corruption in Fetchmail
Fetchmail, also known as fetchmail-ssl, before version 5.8.17 improperly validates a server-supplied index when processing responses to LIST requests. A malicious IMAP or POP/POP3 server can return a negative index that causes an out-of-bounds memory write. This allows arbitrary memory corruption in the Fetchmail process and may enable privilege gain.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A malicious mail server can overwrite arbitrary memory in the Fetchmail process, potentially causing a crash, disrupting mail retrieval, or enabling privilege gain. The extent of compromise depends on exploitation reliability and the privileges under which Fetchmail runs.
If you can’t patch tonight, do this now.
Restrict Fetchmail connections to trusted mail servers and avoid retrieving mail from untrusted endpoints until upgraded. Run Fetchmail with the minimum required privileges and, where feasible, isolate it in a sandbox or jail to limit the consequences of memory corruption. These measures do not correct the indexing flaw.
Patch, then assume compromise.
Upgrade Fetchmail to version 5.8.17 or later. At the implementation level, validate server-supplied message indices against both lower and upper bounds before using them for array access, rejecting negative and otherwise out-of-range values.
No validated public exploits yet. Hidden: 2 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.