RUSTSEC-2026-0561: Missing dot-stuffing after a bare LF or CR allows SMTP command injection
Published 2026-11-17 · Updated 2026-11-18
Summary
RUSTSEC-2026-0561 is a missing dot-stuffing flaw in the lettre crate after bare LF or CR line endings that allows SMTP command injection. Engineering teams using lettre versions prior to 0.11.24 should upgrade to version 0.11.24.
Who is affected
Deployments using crates.io lettre from version 0.0.0-0 before 0.11.24 are affected when passing messages to send_raw or sending message bodies without encoding, whereas LF line endings in a String body are converted to CRLF before sending. Exploitation requires an attacker to control message content containing bare LF or CR line endings and the target SMTP server to accept a bare LF as a line ending. Under these conditions, the message can be ended early with a bare LF dot sequence so subsequent content is interpreted as SMTP commands to send other messages over the same authenticated connection.
Exploitability
The severity is unknown because a CVSS vector and base score are not documented for this record, and the CWE is also not documented. An EPSS score is not yet available to estimate exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, so active exploitation is not documented.
Remediation
- Upgrade the crates.io lettre dependency to fixed version 0.11.24 or later in Cargo.toml and Cargo.lock.
- Verify the updated dependency lockfile resolves lettre to 0.11.24 or newer, then rebuild and redeploy affected applications.
How to check your project
- Inspect Cargo.lock or Cargo.toml in Rust projects to check whether crates.io lettre is resolved to a version from 0.0.0-0 prior to 0.11.24.
- Search application source code for usage of lettre send_raw or unencoded message bodies to identify affected code paths.
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
Which versions of lettre are affected and what version fixes RUSTSEC-2026-0561?
The crates.io package lettre is affected starting from version 0.0.0-0 and is fixed in version 0.11.24.
Are all lettre message types affected by this SMTP command injection issue?
The advisory states that this affects messages passed to send_raw and message bodies sent without being encoded, while LF line endings in a String body are converted to CRLF before sending.
What are the CVSS, CWE, EPSS, and CISA KEV details for this vulnerability?
The CVSS vector, base score, CWE, and aliases are not documented, severity is unknown, EPSS is not yet available, and CISA Known Exploited Vulnerabilities status is no.
Original advisory description
References
- PACKAGE https://crates.io/crates/lettre
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0561.html
- WEB https://github.com/lettre/lettre/commit/3d9a6e6a467c6ce00bd39ada6aa1a00e57540a1d
Source records: RUSTSEC-2026-0561 (OSV.dev).