RUSTSEC-2026-0560: STARTTLS response injection allows a man-in-the-middle to forge SMTP replies

Published Nov 17, 2026
·
Updated

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 starttlsrelay). Implicit TLS (Tls::Wrapper, as set up by relay) is not.

Affected Software

1 affected componentFixes available
rust/lettre>=0.0.0-0<0.11.24
0.11.24

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/lettre to a version that resolves this vulnerability.

    Fixed in 0.11.24

Event History

Nov 17, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are affected?

Only lettre SMTP connections that upgrade from cleartext using STARTTLS are affected: Tls::Required and Tls::Opportunistic configurations created with starttls_relay. Implicit TLS using Tls::Wrapper, created with relay, is not affected.

2

What does an attacker need to exploit this?

An attacker must be able to act as a man-in-the-middle on the connection and inject additional SMTP replies into the cleartext response to STARTTLS. No client-side privileges or user interaction are required.

3

What is the practical impact of a successful attack?

The client can treat attacker-forged replies as the server's responses to commands sent after TLS is established. For example, an email rejection can be made to appear as an acceptance, affecting message-delivery integrity and availability.

4

What can be done if patching is not immediately possible?

Avoid affected STARTTLS configurations where possible by using implicit TLS with Tls::Wrapper via relay, which is identified as unaffected. This reduces exposure to reply injection during the cleartext-to-TLS upgrade.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203