RUSTSEC-2026-0564: Panic on a mailbox display name containing CR or LF allows denial of service
Published 2026-11-17 · Updated 2026-11-18
Summary
A panic vulnerability in the lettre crate is triggered when a Mailbox display name contains CR or LF characters during formatting. Engineering teams using lettre for email construction should update their dependencies.
Who is affected
Applications using the lettre crate (versions 0.10.0-rc.5 up to 0.11.23) that process untrusted display names in email headers are vulnerable to denial of service. If an attacker can control a display name, such as a user profile name, formatting the message header will cause a thread or task panic. Applications that strictly use trusted input for display names are not exposed.
Exploitability
The CVSS vector, base score, and EPSS are not documented. CISA KEV active exploitation status is no.
Remediation
- Update the crates.io lettre dependency to version 0.11.24 or later.
- Ensure display names used in mailboxes come only from trusted sources if updating is delayed.
How to check your project
- Check Cargo.lock for the lettre crate to verify if version 0.10.0-rc.5 through 0.11.23 is present.
- Review application codebase for usage of the lettre Mailbox type where input might be untrusted.
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.10.0-rc.5, < 0.11.24 | 0.11.24 | cargo update -p lettre --precise 0.11.24 |
FAQ
What causes the panic in lettre?
The panic occurs when a Mailbox display name contains Carriage Return (CR) or Line Feed (LF) characters and is formatted or placed into headers like From or To.
Which versions of the lettre crate are affected?
Versions introduced from 0.10.0-rc.5 up to the fixed version 0.11.24 are affected.
Are applications with trusted display names vulnerable?
No, applications that take display names exclusively from trusted input are not exposed to this vulnerability.
Original advisory description
References
- PACKAGE https://crates.io/crates/lettre
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0564.html
- WEB https://github.com/lettre/lettre/commit/0ad883cdb20c256ab29c9d002fd4cc55c5d8abfe
Source records: RUSTSEC-2026-0564 (OSV.dev).