GHSA-q3jf-wmp2-47pg: STARTTLS response injection allows a man-in-the-middle to forge SMTP replies
Published 2026-11-17 · Updated 2026-11-18 · Also known as RUSTSEC-2026-0560
Summary
The lettre crate contains a STARTTLS response injection vulnerability that allows man-in-the-middle attackers to forge SMTP command replies. Users of the lettre library implementing STARTTLS should update to the patched release to prevent unauthorized command injection.
Who is affected
This vulnerability affects deployments using STARTTLS in the lettre crate, specifically those configured with Tls::Required or Tls::Opportunistic. Implicit TLS (Tls::Wrapper) implementations are not affected. An attacker positioned between the client and server can inject malicious replies to cleartext STARTTLS requests, potentially tricking the client into believing failed operations were successful.
Exploitability
The vulnerability requires high attack complexity as it relies on a man-in-the-middle position and precise timing to inject forged replies. The CVSS 3.1 base score of 4.8 reflects a low-integrity and low-availability impact with no CISA KEV data or EPSS metrics currently available.
Remediation
- Update the lettre crate dependency to version 0.11.24 or later.
- Verify the version constraint in Cargo.toml to ensure 0.11.24 is the minimum permitted version.
How to check your project
- Run 'cargo tree -p lettre' in the project directory to identify the installed version of the lettre crate.
- Examine Cargo.lock for dependencies on 'lettre' versions earlier than 0.11.24.
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 |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | Low |
FAQ
Is implicit TLS affected by this issue?
No, implicit TLS (Tls::Wrapper) is not affected; the vulnerability is specific to connections using STARTTLS.
What is the primary risk of this vulnerability?
The primary risk is a man-in-the-middle attack where an attacker injects fake SMTP server replies, which can lead to misinterpretation of command statuses, such as falsely confirming a message delivery.
Is there any evidence of active exploitation?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Original advisory description
References
- PACKAGE https://crates.io/crates/lettre
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0560.html
- WEB https://github.com/lettre/lettre/commit/b404122f1b51cdfa32662661849aa3a22e02af38
Source records: RUSTSEC-2026-0560 (OSV.dev).