RUSTSEC-2026-0563: Messages for an address with a quoted local part are sent to a different address
A message whose sender or recipient has a quoted local part is sent with a different address in its envelope than the one the application was given: "d "@example.com becomes d@example.com. Someone who can choose such an address can have a message delivered to another mailbox than the one the application validated.
Addresses without a quoted local part are not affected.
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
Which applications are exposed to unintended mailbox delivery?
Applications using lettre are exposed when they accept or construct sender or recipient addresses with quoted local parts and validate or authorize the address before lettre builds the message envelope. Addresses without a quoted local part are not affected.
What must an attacker control to exploit this issue?
The attacker must be able to choose an address containing a quoted local part, such as "d "@example.com. The application must treat the supplied address as acceptable even though lettre sends the envelope to the differently normalized address d@example.com.
How can we identify potentially affected message flows?
Review uses of lettre where sender or recipient addresses come from users or other untrusted input. Test quoted-local-part addresses and compare the address validated by the application with the envelope address actually sent; a quoted address that becomes an unquoted address indicates exposure.