RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0562

Panic on an EHLO reply line of only white space allows denial of service

Reported
Issued
Package
lettre (crates.io)
Type
Vulnerability
Categories
Keywords
#smtp #panic
Aliases
References
Patched
  • >=0.11.24
Affected Functions
Version
lettre::smtp::extension::ServerInfo::from_response
  • <0.10.0-alpha.1
lettre::transport::smtp::extension::ServerInfo::from_response
  • >=0.10.0-alpha.1, <0.11.24

Description

A malicious or compromised server can reply to EHLO with a line holding nothing but white space, causing the client to panic.

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.

Advisory available under CC0-1.0 license.