Skip to main content

lettre CVE-2026-46428

| EUVDEUVD-2026-45982 CRITICAL
Improper Certificate Validation (CWE-295)
2026-07-20 GitHub_M GHSA-4pj9-g833-qx53
9.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain on-path network position
  2. Delivery
    Intercept SMTP submission TLS handshake
  3. Exploit
    Present chain-valid cert for wrong hostname
  4. Execution
    Hostname check silently skipped
  5. Impact
    Relay session and capture credentials/message contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation requires three concrete conditions: (1) the victim application must be compiled with lettre's optional boring-tls feature - native-tls and rustls builds are immune; (2) the affected version range 0.10.1 through 0.11.21 must be in use; and (3) the attacker must hold an on-path/man-in-the-middle network position (matching CVSS 4.0 AT:P) and be able to present some certificate that chains to a CA the client trusts, for any domain. Limiting factors: the boring-tls backend is not the default, so most lettre deployments are unaffected; and without network interposition the flaw cannot be triggered - a purely remote off-path attacker cannot exploit it. No authentication or user interaction is required of the victim (PR:N/UI:N).

Impact

The provided CVSS 4.0 base score of 9.1 reflects high confidentiality and integrity impact (VC:H/VI:H) with no privileges or user interaction, but crucially includes AT:P - an Attack Requirement meaning the attacker must first achieve an on-path/man-in-the-middle position, which is the single biggest limiter on real-world exploitability. This is a genuine, high-severity design defect rather than an inflated score, but it is not remotely exploitable at will: it requires network interposition (rogue Wi-Fi, ARP/DNS spoofing, compromised upstream, or a hostile network segment) plus a victim built specifically with the non-default boring-tls feature. No EPSS score, KEV listing, or SSVC decision was supplied; absent those, treat exploitation as plausible-but-conditional. No public exploit is identified, though the fix commit publicly reveals the exact inverted-boolean bug. Net priority: high for any environment that ships lettre with boring-tls and sends credentialed SMTP over untrusted networks; low urgency for the majority of lettre users on rustls or native-tls, who are unaffected.

Exploit ScenarioDerived

A user of an application built with lettre + boring-tls connects to their SMTP submission server from a coffee-shop or otherwise attacker-controlled network. The attacker, positioned on-path, redirects the SMTP connection to their own server and presents any certificate that chains to a trusted CA (for any unrelated domain); because hostname verification is disabled, the TLS handshake succeeds silently, and the attacker captures the PLAIN/LOGIN credentials and full email contents. No public POC is identified, but the inverted-boolean root cause is exposed in the public fix commit.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 20, 2026

TLS hostname verification bypass in the lettre Rust mailer library (0.10.1 through 0.11.21) exposes users of the boring-tls feature to man-in-the-middle attacks; an inverted boolean caused the default strict configuration to silently disable hostname checking. An on-path attacker holding any chain-valid certificate for any domain can transparently intercept SMTP submission, harvesting PLAIN/LOGIN credentials and full message contents. There is no public exploit identified at time of analysis, but the one-line root cause is visible in the public fix commit, making the flaw trivially understandable; native-tls and rustls backends are not affected.

RemediationAI

Vendor-released patch: 0.11.22 - upgrade the lettre dependency to >= 0.11.22 (release: https://github.com/lettre/lettre/releases/tag/v0.11.22, fix commit f5efffc88360dbdbfcef80f465e42d5bce68ca35). This is the correct and complete remediation and should be applied by anyone using the boring-tls feature. As an interim measure until you can upgrade, switch the TLS backend to rustls or native-tls, which are unaffected - the trade-off is a dependency/feature change and a rebuild rather than a code change. If neither is possible immediately, restrict SMTP submission to trusted network paths (e.g., a fixed relay reachable only over a VPN or private link) so that no on-path attacker can interpose; this reduces exposure but does not restore hostname verification and adds operational/network constraints. Do not rely on rotating credentials alone, since message contents are also exposed. Advisory: https://github.com/lettre/lettre/security/advisories/GHSA-4pj9-g833-qx53.

Affected VersionsENISA

lettre 0.10.1, < 0.11.22

Affected Packages

cargo lettre fix: 0.11.22

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

lettre is the de-facto SMTP client library for the Rust ecosystem, and this issue lives in its optional boring-tls backend (an integration with Google's BoringSSL via the boring crate). The root cause is CWE-295 (Improper Certificate Validation): in both the sync (net.rs) and async (async_net.rs) transports, the code passed the user's accept_invalid_hostnames flag directly into set_verify_hostname()/verify_hostname() instead of its negation. Because the boring API expects a 'verify hostname' boolean, feeding it the 'accept invalid hostnames' value inverted the meaning - with the default accept_invalid_hostnames=false, verification was set to false, disabling the check entirely while callers believed they were in strict mode. Certificate chain validation still occurred, so only the hostname-to-certificate binding was broken, which is precisely what lets any valid-but-mismatched certificate pass.

Know when Lettre gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.1 CRITICAL
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
vuln.today AI 7.4 HIGH

AC:H because a man-in-the-middle position is required; PR:N/UI:N as no auth or victim action is needed; C:H/I:H for exposed credentials/contents and message tampering, A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 20, 2026 - 17:02 EUVD
CVE Published
Jul 20, 2026 - 15:37 cve.org
CRITICAL 9.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The lettre Rust mailer library (versions 0.10.1-0.11.21 using boring-tls) contains a critical TLS hostname verification bypass enabling man-in-the-middle attacks on SMTP connections. No public exploit has been identified at time of analysis, though the vulnerability is readily understandable from public commit fixes. This exposes organizations to credential theft and message interception, requiring immediate patch deployment across affected email infrastructure.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
popular Rust mailer, but affected boring-tls backend is opt-in, non-default
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy