{"id":"RUSTSEC-2026-0561","aliases":["RUSTSEC-2026-0561"],"related":["RUSTSEC-2021-0069"],"kind":"vulnerability","state":"published","title":"Missing dot-stuffing after a bare LF or CR allows SMTP command injection","summary":"Someone who controls the content of a message with bare LF or CR line endings\ncan end it early with `\\n.\\n` on a server that takes a bare LF for a line\nending. What follows is read by the server as SMTP commands, which can be used\nto send other messages over the same authenticated connection.\n\nThis affects messages passed to `send_raw`, and message bodies that are sent\nwithout being encoded. The LF line endings of a `String` body are converted to\nCRLF before it is sent.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"Someone who controls the content of a message with bare LF or CR line endings\ncan end it early with `\\n.\\n` on a server that takes a bare LF for a line\nending. What follows is read by the server as SMTP commands, which can be used\nto send other messages over the same authenticated connection.\n\nThis affects messages passed to `send_raw`, and message bodies that are sent\nwithout being encoded. The LF line endings of a `String` body are converted to\nCRLF before it is sent.","format":"markdown","source":"rustsec"}],"published":"2026-11-17T12:00:00.000Z","modified":"2026-11-18T09:15:02.375Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.11.24"}],"ecosystem":"crates.io","package":"lettre","purl":"pkg:cargo/lettre","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/lettre","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0561.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/lettre/lettre/commit/3d9a6e6a467c6ce00bd39ada6aa1a00e57540a1d","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0561","url":"https://rustsec.org/advisories/RUSTSEC-2026-0561.html","licence":"CC0-1.0","modified":"2026-11-18T09:15:02.375Z"}],"updatedAt":"2026-11-25T22:56:43.515Z"}