RustSec Advisory Database
RUSTSEC-2026-0141
TLS hostname verification disabled when using Boring TLS backend
Details
An inverted-boolean bug in lettre's boring-tls integration silently disables TLS hostname verification for callers using the default (strict) configuration. An on-path attacker presenting any chain-valid certificate for any domain can intercept SMTP submission, including PLAIN/LOGIN credentials and message contents, against any lettre user built with the boring-tls feature. Other TLS backends (native-tls, rustls) are unaffected.
The bug was introduced in v0.10.1 and persists through v0.11.21 (latest).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | lettre | From 0.10.1 before 0.11.22 (fixed in 0.11.22) |