RUSTSEC-2026-0565: Unbounded buffering of an SMTP reply allows a malicious server to exhaust memory

Published Nov 17, 2026
·
Updated

A malicious or compromised server can send a reply line that never ends, which the client buffers until memory runs out. A reply made of many short lines also keeps a CPU core busy: for a few seconds per reply since 0.11.22, for as long as the server wants before it.

Applications that connect only to a trusted server over implicit TLS are not exposed; the risk applies to clients that may connect to untrusted servers, or that use STARTTLS or no TLS, where a man-in-the-middle can forge the reply.

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
DescriptionAffected Software

Frequently Asked Questions

1

Which deployments are realistically exposed to a malicious reply?

Clients that can connect to untrusted SMTP servers are exposed. Clients using STARTTLS or no TLS are also exposed because a man-in-the-middle can forge SMTP replies; clients connecting only to a trusted server over implicit TLS are not exposed.

2

What does an attacker need to do to trigger the resource exhaustion?

A malicious or compromised SMTP server must send a reply line that never terminates to cause unbounded memory buffering. Sending many short reply lines can instead keep a CPU core busy.

3

What is the impact of many short reply lines?

Since version 0.11.22, many short lines can occupy a CPU core for a few seconds per reply. Before that behavior, the server can keep the CPU busy for as long as it wants.

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