MEDIUM · CVSS 3.1 4.8

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

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

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityLow

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
A man-in-the-middle can append replies of their own to the cleartext reply to `STARTTLS`. The client takes them for the server's replies to the commands it then sends over TLS, so the attacker can, for example, make a message that the server rejected look accepted. Only connections upgraded with `STARTTLS` are affected (`Tls::Required` and `Tls::Opportunistic`, as set up by `starttls_relay`). Implicit TLS (`Tls::Wrapper`, as set up by `relay`) is not.

References

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