A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-7365

CVE-2025-7365: Red Hat Keycloak Auth Bypass Vulnerability

CVE-2025-7365 is an authentication bypass flaw in Red Hat Keycloak that enables account takeover through email manipulation during IdP login. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-7365 Overview

A flaw in Red Hat Keycloak allows an authenticated attacker to hijack accounts during identity provider (IdP) login by abusing the account merge flow. When the attacker reaches the "review profile" step, they can change their email address to match a victim's account. Keycloak then sends a verification email to the victim. The message does not disclose the attacker's email, creating a phishing vector. If the victim clicks the verification link, the attacker gains access to the victim's account. The issue is tracked as [CWE-346] Origin Validation Error.

Critical Impact

Successful exploitation results in full account takeover of the victim's Keycloak account, exposing every application that relies on Keycloak for single sign-on.

Affected Products

  • Red Hat Keycloak
  • Red Hat Build of Keycloak
  • Red Hat Single Sign-On deployments using the affected Keycloak versions

Discovery Timeline

  • 2025-07-10 - CVE-2025-7365 published to the National Vulnerability Database (NVD)
  • 2026-05-06 - Last updated in NVD database

Technical Details for CVE-2025-7365

Vulnerability Analysis

The vulnerability resides in the Keycloak first-login flow used when a user authenticates through an external identity provider. When the authenticated user is prompted to merge with an existing local account, Keycloak presents a "review profile" page that permits editing the email address. The application then issues a verification email to the supplied address without binding the verification token to the originating IdP identity. The token therefore acts as proof of ownership for any address the attacker submits.

The verification email omits any reference to the attacker's identity or the IdP that initiated the flow. From the victim's perspective, the message looks like a legitimate verification request from a trusted service. Clicking the link completes the merge, binding the attacker's federated identity to the victim's local account.

Root Cause

The root cause is an origin validation failure [CWE-346] in the account-linking workflow. Keycloak treats successful clicks on a verification link as sufficient proof to merge a federated identity with a local account, without re-validating that the email under review belongs to the federated identity that initiated the login. The flow does not enforce a constraint that the reviewed email match the asserted identity from the IdP.

Attack Vector

Exploitation requires network access to the Keycloak login endpoint, valid credentials at a federated IdP, and user interaction from the victim. The attacker initiates an IdP login, triggers the account merge prompt, edits the email field on the review-profile page to the victim's address, and submits the form. Keycloak dispatches a verification email to the victim. When the victim clicks the link, Keycloak binds the attacker's federated identity to the victim's account, granting subsequent logins.

No verified public exploit code is available. Technical details and the upstream fix are tracked in GitHub Keycloak Issue #40446 and GitHub Keycloak Pull Request #40520.

Detection Methods for CVE-2025-7365

Indicators of Compromise

  • Keycloak audit events of type UPDATE_PROFILE or FEDERATED_IDENTITY_LINK where the submitted email differs from the email asserted by the upstream IdP.
  • SEND_VERIFY_EMAIL events targeting an address that already belongs to another active local account.
  • VERIFY_EMAIL success followed by FEDERATED_IDENTITY_LINK for a user whose federated sub claim does not match the historical identity for that account.
  • Unexpected logins to downstream applications from a new federated IdP for an existing user.

Detection Strategies

  • Correlate Keycloak EVENT log entries to flag flows where the review-profile step changes the email to one that matches an existing user.
  • Alert on verification emails sent to an address that already has a verified, active Keycloak account.
  • Track the ratio of IDENTITY_PROVIDER_FIRST_LOGIN events that result in account merges and investigate spikes.

Monitoring Recommendations

  • Forward Keycloak event logs and admin events to a centralized SIEM and retain them for at least 90 days.
  • Notify account owners through an out-of-band channel whenever a new federated identity is linked to their account.
  • Review identity broker configurations and enforce administrator approval for first-time IdP-to-local account merges.

How to Mitigate CVE-2025-7365

Immediate Actions Required

  • Apply the fixed Keycloak builds shipped by Red Hat in RHSA-2025:11986, RHSA-2025:11987, RHSA-2025:12015, and RHSA-2025:12016.
  • Audit existing account-to-IdP links for unexpected federated identities and unlink any that cannot be attributed to the legitimate user.
  • Force a password reset and re-verification for users whose accounts were recently merged with a federated identity.

Patch Information

Red Hat has released fixed packages for Red Hat Build of Keycloak and Red Hat Single Sign-On. Refer to the Red Hat CVE Report for CVE-2025-7365 and Red Hat Bugzilla #2378852 for the complete list of fixed versions and applicability for each supported product stream. The upstream fix is delivered in Keycloak Pull Request #40520.

Workarounds

  • Disable the "Update Profile On First Login" option on identity provider configurations, or set it to a value that prevents email editing during first login.
  • Replace the default First Broker Login flow with a customized authentication flow that blocks email changes and requires administrator approval for account merges.
  • Restrict which identity providers are allowed to link to existing local accounts until patched builds are deployed.
bash
# Configuration example: harden the First Broker Login flow via kcadm.sh
# 1. Set Update Profile On First Login to OFF for the affected IdP
kcadm.sh update identity-provider/instances/<idp-alias> \
  -r <realm> \
  -s 'config.updateProfileFirstLoginMode="off"'

# 2. Disable automatic account linking by trust-on-first-use
kcadm.sh update identity-provider/instances/<idp-alias> \
  -r <realm> \
  -s 'config.trustEmail="false"'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechRedhat Keycloak

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-346
  • Technical References
  • GitHub Keycloak Issue #40446

  • GitHub Keycloak Pull Request #40520
  • Vendor Resources
  • Red Hat Security Advisory RHSA-2025:11986

  • Red Hat Security Advisory RHSA-2025:11987

  • Red Hat Security Advisory RHSA-2025:12015

  • Red Hat Security Advisory RHSA-2025:12016

  • Red Hat CVE Report CVE-2025-7365

  • Red Hat Bug Report #2378852
  • Related CVEs
  • CVE-2023-0091: Redhat Keycloak Auth Bypass Vulnerability

  • CVE-2023-0105: Redhat Keycloak Auth Bypass Vulnerability

  • CVE-2023-6927: Redhat Keycloak Auth Bypass Vulnerability

  • CVE-2023-0264: Red Hat Keycloak Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English