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.
Published: 2026-07-20
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Tue, 21 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 21 Jul 2026 00:30:00 +0000

Type Values Removed Values Added
First Time appeared Lettre
Lettre lettre
Vendors & Products Lettre
Lettre lettre

Mon, 20 Jul 2026 16:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-21T15:49:36.495Z

Reserved: 2026-05-13T22:18:22.830Z

Link: CVE-2026-46428

cve-icon Vulnrichment

Updated: 2026-07-21T15:49:12.284Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:15:04Z

Weaknesses
  • CWE-295

    Improper Certificate Validation