Unbounded buffering of an SMTP reply allows a malicious server to exhaust memory
No exploitation in the wild has been reported. Fixed in lettre 0.11.24.
A malicious or compromised server can send a reply line that never ends, which the client buffers until memory runs out. A reply made of many short lines also keeps a CPU core busy: for a few seconds per reply since 0.11.22, for as long as the server wants before it. Applications that connect only to a trusted server over implicit TLS are not exposed; the risk applies to clients that may connect to untrusted servers, or that use `STARTTLS` or no TLS, where a man-in-the-middle can forge the reply.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| cargo: lettre | >=0.0.0-0 <0.11.24 | 0.11.24 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in lettre (Cargo), strongest first
Embed
A live severity badge for an advisory, README or ticket