GHSA-23wm-4vvw-r7p2: Panic on an `EHLO` reply line of only white space allows denial of service
Published 2026-11-17 · Updated 2026-11-18 · Also known as RUSTSEC-2026-0562
Summary
A vulnerability in the lettre crate allows a malicious or compromised SMTP server to trigger a panic via a whitespace-only EHLO response. Engineering teams using vulnerable versions of the lettre library should update immediately.
Who is affected
Applications connecting to untrusted SMTP servers, or using STARTTLS/plain connections where a man-in-the-middle can forge a reply, are exposed to denial of service through panics. Applications that connect exclusively to trusted servers over implicit TLS are not exposed.
Exploitability
The CVSS vector is not provided, the EPSS is not yet available, and the vulnerability is not present in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires the client to interact with a malicious or compromised server capable of replying to EHLO with a whitespace-only line.
Remediation
- Update the crates.io lettre package to version 0.11.24 or later.
How to check your project
- Check Cargo.lock or Cargo.toml for references to the lettre crate within the range introduced 0.0.0-0 and fixed before 0.11.24.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | lettre |
>= 0.0.0-0, < 0.11.24 | 0.11.24 | cargo update -p lettre --precise 0.11.24 |
FAQ
What causes the panic in the lettre crate?
The panic is triggered when a server replies to an EHLO command with a line containing only white space.
Are all deployments of lettre vulnerable?
No, deployments are only at risk if they connect to untrusted servers, use STARTTLS, or use no TLS where a man-in-the-middle attack is possible.
What is the fixed version for the vulnerability?
The fixed version is 0.11.24 of the crates.io lettre package.
Original advisory description
References
- PACKAGE https://crates.io/crates/lettre
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0562.html
- WEB https://github.com/lettre/lettre/commit/4a58794b672542d5bfea5a40505bb20627122086
Source records: RUSTSEC-2026-0562 (OSV.dev).