Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain man-in-the-middle position on SMTP path
-
ExploitTamper with STARTTLS upgrade request
-
ExecutionForce fallback to cleartext connection
-
ImpactCapture SMTP credentials and email content in plaintext
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V12 - Secure Communication Transport encryption
|
| Exploitation Conditions | Exploitation requires that Keycloak's SMTP email configuration has the STARTTLS option enabled (opportunistic TLS) rather than enforced implicit TLS, and that the attacker can actively intercept and modify traffic on the network path between the Keycloak server and its SMTP mail server. Because Keycloak does not strictly enforce the encrypted upgrade, a tampered STARTTLS negotiation silently downgrades to cleartext. Limiting factors: the attacker must already hold a man-in-the-middle position (reflected in CVSS AC:H), exploitation only affects deployments that send mail via STARTTLS-mode SMTP, and impact is confined to disclosure of SMTP credentials and email content - no Keycloak authentication or user interaction is required (PR:N/UI:N). |
| Impact | This is a genuine but conditional confidentiality issue rather than a drop-everything priority. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N, base 6.5) is internally consistent with the description: AV:N because the attack targets network traffic, AC:H because the attacker must occupy a privileged man-in-the-middle position and actively tamper with the STARTTLS negotiation, and PR:N because no Keycloak authentication is needed. The high confidentiality impact reflects exposure of SMTP credentials and email contents, while I:L maps to the attacker's manipulation of the encryption-upgrade request. No EPSS score, CISA KEV entry, POC, or SSVC decision data was supplied; exploitation status is therefore 'no public exploit identified at time of analysis'. The absence of KEV/EPSS signals, combined with the AC:H man-in-the-middle prerequisite, indicates this is a classic STARTTLS-stripping (CWE-319) weakness that is real but not mass-exploitable - it favors targeted, network-adjacent adversaries over opportunistic attackers. Note the dependency: exploitation requires the SMTP server to be reachable by the attacker's interception point and STARTTLS to be the configured (rather than implicit/forced-TLS) mode. No conflicting signals were found between the CVSS vector and the description. |
| Exploit ScenarioDerived | An attacker positioned on the network path between a Keycloak server and its configured SMTP mail server intercepts the outbound connection and strips or tampers with the STARTTLS upgrade so the session falls back to cleartext. Keycloak proceeds to transmit SMTP authentication credentials and email message content unencrypted, which the attacker captures. No public exploit code was identified, but STARTTLS-stripping is a well-understood technique and the high AC reflects the need for an active MITM position. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Keycloak's SMTP email configuration can silently fall back to unencrypted communication when STARTTLS is enabled, allowing an attacker who can intercept and tamper with traffic between the Keycloak server and its mail relay to capture SMTP credentials and email message content in cleartext. Affected deployments include Red Hat Build of Keycloak and Red Hat Single Sign-On 7 (CVSS 6.5, AV:N/AC:H/PR:N/UI:N), but exploitation is conditional: it requires a man-in-the-middle position on the SMTP path and an instance configured for opportunistic STARTTLS rather than implicit TLS. No public exploit code or confirmed active exploitation has been identified at time of analysis.
RemediationAI
No vendor-released patch or fixed version is identified in the available data at time of analysis; monitor https://access.redhat.com/security/cve/CVE-2026-107121 and https://bugzilla.redhat.com/show_bug.cgi?id=2547296 for Red Hat errata covering Red Hat Build of Keycloak and Red Hat Single Sign-On 7. Until a fix is published, the most effective mitigation is to stop relying on opportunistic STARTTLS: in the realm's Email settings, disable STARTTLS and enable implicit TLS/SSL (SMTPS, typically port 465) so the TLS session is established before any SMTP dialogue can be tampered with; the trade-off is that the mail relay must support SMTPS and firewall/NAT rules may need updating on the new port. If STARTTLS must be retained, force the mail path through a trusted channel - for example, send email through a local relay on the same host or a dedicated relay reachable over an IPsec/VPN tunnel or a private segment - and configure the relay to require STARTTLS and validate its certificate, accepting the added operational overhead of tunnel or relay management. Additional compensating controls include pinning or strictly validating the mail server certificate where the email client configuration permits, restricting outbound SMTP to only the known relay IP so an attacker cannot redirect the connection, and monitoring mail relay logs for cleartext or downgraded STARTTLS sessions; none of these substitute for the missing fail-closed behavior, so privilege restrictions on the SMTP credentials used by Keycloak (send-only, no mailbox access, unique password that can be rotated) reduce the blast radius if disclosure occurs.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in the keycloak-services component that handles outbound email, and its root cause class is CWE-319 (Cleartext Transmission of Sensitive Information). SMTP STARTTLS is an opportunistic upgrade: the client issues the STARTTLS command and waits for the server's '220 Ready to start TLS' response before negotiating the TLS handshake. If an in-path attacker strips, rewrites, or blocks that response (or the STARTTLS capability advertisement), a client that does not fail closed simply continues the session in plaintext without surfacing an error. Keycloak's email handling is the affected implementation, meaning credentials supplied in the SMTP configuration and the bodies/headers of notifications it sends can be exposed. The CPE data identifies the scope as Red Hat Build of Keycloak and Red Hat Single Sign-On 7, both using wildcard version ranges, so no single fixed version boundary is documented in the supplied data. The assessed CVSS vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N maps cleanly to this behavior: the attacker is a remote, unauthenticated network adversary needing a pre-existing MITM position (AC:H) and no user interaction (UI:N), obtaining high confidentiality impact (SMTP credentials and email contents) with limited integrity impact (the attacker can also alter or suppress messages in the downgraded session).
Know when Red Hat Build Of Keycloak 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
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Network-reachable SMTP traffic (AV:N) but requires an active man-in-the-middle position and STARTTLS tampering (AC:H); no auth needed (PR:N); credential/content disclosure drives C:H with minor I:L and no availability impact.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in the SMTP email configuration handling of the keycloak-services component. When the STARTTLS option is enabled, Keycloak fails to strictly enforce an encrypted connection, allowing it to fall back to unencrypted communication if the encryption request is tampered with. An attacker who can intercept network traffic can exploit this to capture sensitive email credentials and message content in plain text.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
More in Red Hat Build Of Keycloak
View allAccount takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML
Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or i
Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet
Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil
Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs
Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t
EUVD-2026-94213
GHSA-4276-jw29-xwhr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB