CVE-2026-46428

lettre has TLS hostname verification disabled when using Boring TLS backend

Published Jul 20, 2026 CVSS 4.0 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
lettre is a a mailer library for Rust. Starting in version 0.10.1 and prior to version 0.11.22, an inverted-boolean bug in lettre's `boring-tls` integration silently disables TLS hostname verification for callers using the default (strict) configuration. An on-path attacker presenting any chain-valid certificate for any domain can intercept SMTP submission, including PLAIN/LOGIN credentials and message contents, against any lettre user built with the `boring-tls` feature. Other TLS backends (`native-tls`, `rustls`) are unaffected. Version 0.11.22 patches the issue.

Analysis

AI-generated

Technical impact

An inverted‑boolean bug in lettre’s Boring TLS integration causes TLS hostname verification to be silently disabled for callers using the default strict configuration. The absence of hostname verification allows an on‑path attacker to present any chain‑valid certificate for any domain and intercept SMTP submissions, capturing plain‑text credentials and message contents. This flaw is identified as CWE‑295 and exposes confidentiality of mail traffic to remote attackers.

Affected Systems

Vulnerable versions of the lettre mailer library, from 0.10.1 up to 0.11.21, when built with the `boring-tls` feature, are affected. The issue does not impact builds using the native‑tls or rustls backends.

Risk and Exploitability

The CVSS score of 9.1 reflects a high‑severity risk due to the potential for credential theft and message compromise. EPSS score < 1% indicates a very low but nonzero exploitation probability, and the vulnerability is not listed in CISA KEV, but the high score and the ease of exploitation—requiring only that the attacker be positioned on the network path and present a valid certificate—make it a significant threat for applications relying on lettre for SMTP transport. The attack is likely to target systems that use the library without additional host‑name verification controls.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the lettre library to version 0.11.22 or newer, where the TLS hostname verification bug is fixed.
  • If upgrade is not immediately possible, remove or disable the `boring-tls` feature and switch to a secure TLS backend such as native‑tls or rustls.
  • Verify that any custom TLS configuration enforces hostname verification if the Boring TLS backend must remain in use.

Generated by OpenCVE AI on July 30, 2026 at 19:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4pj9-g833-qx53 lettre has TLS hostname verification disabled when using Boring TLS backend
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lettre
Lettre lettre
Vendors & Products Lettre
Lettre lettre
Type Values Removed Values Added
Description lettre is a a mailer library for Rust. Starting in version 0.10.1 and prior to version 0.11.22, an inverted-boolean bug in lettre's `boring-tls` integration silently disables TLS hostname verification for callers using the default (strict) configuration. An on-path attacker presenting any chain-valid certificate for any domain can intercept SMTP submission, including PLAIN/LOGIN credentials and message contents, against any lettre user built with the `boring-tls` feature. Other TLS backends (`native-tls`, `rustls`) are unaffected. Version 0.11.22 patches the issue.
Title lettre has TLS hostname verification disabled when using Boring TLS backend
Weaknesses CWE-295
References
Metrics cvssV4_0

{'score': 9.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 21, 2026, 3:49 PM
Reserved
May 13, 2026, 10:18 PM
Status
Deferred
Published
Jul 20, 2026, 4:17 PM
Modified
Jul 23, 2026, 5:58 PM