RUSTSEC-2026-0564: Panic on a mailbox display name containing CR or LF allows denial of service
A Mailbox whose display name contains a CR or LF panics when it is formatted or put in a header such as From or To. Someone who can choose a display name, for example the name of a user a message is sent to, can crash the thread or task building the message.
Applications that take display names only from trusted input are not exposed.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/lettreto a version that resolves this vulnerability.Fixed in 0.11.24
Event History
Frequently Asked Questions
Who can trigger the panic in a vulnerable application?
An attacker needs to be able to supply or influence a mailbox display name that contains a carriage return (CR) or line feed (LF). One example is an application that uses a recipient user's name as the display name when constructing an email.
Are applications using only trusted display names affected?
Applications that obtain display names only from trusted input are not exposed according to the advisory. The risk applies where untrusted or attacker-controlled display names can reach mailbox formatting or message headers such as From or To.
What is the impact if the issue is triggered?
Formatting the affected Mailbox or placing it into a header causes a panic. This can crash the thread or task that is building the email message, resulting in denial of service for that work.