The lettre library prior to version 0.11.24 contains a vulnerability where a malicious or compromised SMTP server can send an unbounded reply line, causing the client to buffer data until memory exhaustion occurs. Additionally, replies composed of many short lines can keep a CPU core busy for extended periods. This affects clients connecting to untrusted servers or using STARTTLS or no TLS, while clients connecting only to trusted servers over implicit TLS are not exposed.
The lettre library has a vulnerability where a mailbox display name containing carriage return (CR) or line feed (LF) characters causes a panic when formatted or included in email headers like From or To. This can lead to denial of service by crashing the thread or task building the message. The issue affects versions from 0.10.0-rc.5 up to but not including 0.11.24. Applications that only use trusted display names are not exposed. A fix is available in version 0.11.24.
In the Lettre email library versions 0.11.0 through 0.11.23, messages with sender or recipient addresses containing quoted local parts are sent with a different envelope address than originally specified. Specifically, an address like "d "@example.com is transformed to d@example.com in the envelope, potentially causing delivery to an unintended mailbox. Addresses without quoted local parts are not affected. This issue was fixed in version 0.11.24.
The lettre Rust library has a vulnerability where a malicious or compromised SMTP server can send an `EHLO` reply line containing only white space, causing the client to panic and resulting in a denial of service. This affects clients connecting to untrusted servers or using STARTTLS or no TLS, but not those connecting only to trusted servers over implicit TLS.
A vulnerability in the lettre Rust library allows SMTP command injection when message content contains bare LF or CR line endings without proper dot-stuffing. An attacker controlling such message content can prematurely terminate the message and inject SMTP commands, potentially sending unauthorized messages over the same authenticated SMTP connection. This affects messages passed to the send_raw function and unencoded message bodies. The issue is fixed in version 0.11.24.
The Lettre library versions before 0.11.24 have a vulnerability in their STARTTLS implementation that allows a man-in-the-middle attacker to inject forged SMTP replies. This occurs because the attacker can append their own replies to the cleartext STARTTLS response, which the client then mistakenly treats as legitimate server responses after the TLS upgrade. This affects only connections upgraded with STARTTLS, not implicit TLS connections.