CVE-2020-7957
Description
Dovecot 2.3.9 IMAP and LMTP crash on specially crafted mail, preventing users from reading messages.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Dovecot 2.3.9 IMAP and LMTP crash on specially crafted mail, preventing users from reading messages.
Vulnerability
Dovecot versions 2.3.9 before 2.3.9.3 contain an improper input validation flaw in the IMAP and LMTP components [1][2]. When the snippet generation process attempts to compute a snippet for a message that is large enough to cause the message parser to return multiple body blocks, the first block(s) do not contain the full snippet (e.g., they are full of whitespace), and the input ends with a trailing > character, the parser mishandles the operation and crashes [1][2]. This occurs because the code does not correctly handle the scenario where many characters must be read to compute the snippet and a trailing > is present.
Exploitation
An attacker with the ability to send email to a Dovecot server (no authentication or special privileges required beyond normal email delivery) can craft a malicious message meeting the specific conditions: large enough to generate multiple body blocks, initial blocks lacking snippet content (e.g., whitespace), and ending with a > character. The attacker does not need direct network access to the IMAP or LMTP service beyond being able to deliver the email. Upon the receiving server processing the message for snippet generation (e.g., when an IMAP client tries to list message snippets or during LMTP delivery), the crash occurs, making the affected mailbox contents permanently inaccessible or causing the message to get stuck during delivery [2].
Impact
Successful exploitation results in a denial of service (CIA impact: availability only, CVSS 3.1 base score 3.1 [1][2]). The recipient cannot read all of their messages because the mailbox becomes permanently inaccessible, or the mail becomes stuck in delivery [1][2]. No data is disclosed, modified, or compromised beyond availability.
Mitigation
The issue is fixed in Dovecot 2.3.9.3, released on 2020-02-12 [1][2]. Users must upgrade to this version or later. No workarounds other than upgrading are documented. Fedora package announcements indicate updates are available for affected distributions [3][4].
- security - CVE-2020-7957: Dovecot: Specially crafted mail can crash snippet generation
- [Dovecot-news] CVE-2020-7957: Specially crafted mail can crash snippet generation
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJXHOUT3FH2DJNMACSX4GHPP4MUV4UKA/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XYT55WH372BJOXCJRKBDIFGBMPVOIDT/
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
4- Dovecot/Dovecotdescription
- Range: >=2.3.9, <2.3.9.3
- osv-coords2 versionspkg:rpm/opensuse/dovecot23&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/dovecot24&distro=openSUSE%20Tumbleweed
< 2.3.16-1.6+ 1 more
- (no CPE)range: < 2.3.16-1.6
- (no CPE)range: < 2.4.0-1.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
5- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6XYT55WH372BJOXCJRKBDIFGBMPVOIDT/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJXHOUT3FH2DJNMACSX4GHPP4MUV4UKA/mitrevendor-advisoryx_refsource_FEDORA
- www.openwall.com/lists/oss-security/2020/02/12/2mitrex_refsource_CONFIRM
- dovecot.org/pipermail/dovecot-news/2020-February/000430.htmlmitrex_refsource_CONFIRM
- dovecot.org/securitymitrex_refsource_MISC
News mentions
0No linked articles in our index yet.