SEVERITY NOT PROVIDED

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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
Someone who controls the content of a message with bare LF or CR line endings can end it early with `\n.\n` on a server that takes a bare LF for a line ending. What follows is read by the server as SMTP commands, which can be used to send other messages over the same authenticated connection. This affects messages passed to `send_raw`, and message bodies that are sent without being encoded. The LF line endings of a `String` body are converted to CRLF before it is sent.

References

Source records: RUSTSEC-2026-0561 (OSV.dev).