# RUSTSEC-2026-0565: Unbounded buffering of an SMTP reply allows a malicious server to exhaust memory

- Database: RustSec
- Published: 2026-11-17
- Modified: 2026-11-18

## Also published as

- [GHSA-PMVC-X69F-5P9F](https://cve.now/GHSA-PMVC-X69F-5P9F.md) (GitHub)

## Affected versions

- lettre (crates.io): fixed in 0.11.24

## Description

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.

## References

- https://crates.io/crates/lettre
- https://rustsec.org/advisories/RUSTSEC-2026-0565.html
- https://github.com/lettre/lettre/commit/075849fb9f2c956202aaaf2ff73e41f995d02f35

Page: https://cve.now/RUSTSEC-2026-0565

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
