Lettre: Unbounded buffering of an SMTP reply allows a malicious server to exhaust memory
Affects lettreSource GCVE Database
Rated High by Threat Radar's AI analysis
- Patch
- Available – fixed in 0.11.24
Data as of 18 Nov 2026, 09:53 UTC
What to do
Upgrade lettre to 0.11.24.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.iolettrepkg:cargo/lettreOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade lettre to version 0.11.24 or later, where this vulnerability is fixed. Clients connecting only to trusted servers over implicit TLS are not exposed to this issue. No other specific mitigations are indicated.
Description
The lettre library prior to version 0.11.24 contains a vulnerability where a malicious or compromised SMTP server can send an unbounded reply line, causing the client to buffer data until memory exhaustion occurs. Additionally, replies composed of many short lines can keep a CPU core busy for extended periods. This affects clients connecting to untrusted servers or using STARTTLS or no TLS, while clients connecting only to trusted servers over implicit TLS are not exposed.