RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0560

STARTTLS response injection allows a man-in-the-middle to forge SMTP replies

Reported
Issued
Package
lettre (crates.io)
Type
Vulnerability
Categories
Keywords
#smtp #starttls #tls #mitm
Aliases
References
CVSS Score
4.8 MEDIUM
CVSS Details
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality Impact
None
Integrity Impact
Low
Availability Impact
Low
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
Patched
  • >=0.11.24

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.

Advisory available under CC0-1.0 license.