SEVERITY NOT PROVIDED

GHSA-23wm-4vvw-r7p2: Panic on an `EHLO` reply line of only white space allows denial of service

Published 2026-11-17 · Updated 2026-11-18 · Also known as RUSTSEC-2026-0562

Summary

A vulnerability in the lettre crate allows a malicious or compromised SMTP server to trigger a panic via a whitespace-only EHLO response. Engineering teams using vulnerable versions of the lettre library should update immediately.

Who is affected

Applications connecting to untrusted SMTP servers, or using STARTTLS/plain connections where a man-in-the-middle can forge a reply, are exposed to denial of service through panics. Applications that connect exclusively to trusted servers over implicit TLS are not exposed.

Exploitability

The CVSS vector is not provided, the EPSS is not yet available, and the vulnerability is not present in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires the client to interact with a malicious or compromised server capable of replying to EHLO with a whitespace-only line.

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

FAQ

What causes the panic in the lettre crate?

The panic is triggered when a server replies to an EHLO command with a line containing only white space.

Are all deployments of lettre vulnerable?

No, deployments are only at risk if they connect to untrusted servers, use STARTTLS, or use no TLS where a man-in-the-middle attack is possible.

What is the fixed version for the vulnerability?

The fixed version is 0.11.24 of the crates.io lettre package.

Original advisory 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.

References

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