# RUSTSEC-2026-0560: STARTTLS response injection allows a man-in-the-middle to forge SMTP replies

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

## Also published as

- [GHSA-Q3JF-WMP2-47PG](https://cve.now/GHSA-Q3JF-WMP2-47PG.md) (GitHub)

## Affected versions

- lettre (crates.io): fixed in 0.11.24

## Description

A man-in-the-middle can append replies of their own to the cleartext reply to
`STARTTLS`. The client takes them for the server's replies to the commands it
then sends over TLS, so the attacker can, for example, make a message that the
server rejected look accepted.

Only connections upgraded with `STARTTLS` are affected (`Tls::Required` and
`Tls::Opportunistic`, as set up by `starttls_relay`). Implicit TLS
(`Tls::Wrapper`, as set up by `relay`) is not.

## References

- https://crates.io/crates/lettre
- https://rustsec.org/advisories/RUSTSEC-2026-0560.html
- https://github.com/lettre/lettre/commit/b404122f1b51cdfa32662661849aa3a22e02af38

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

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