Bug 2587765 (CVE-2026-140884)

Summary: CVE-2026-140884 keycloak-services: keycloak-services: second Review profile submission clears email edited marker
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aschwart, aszczucz, boliveir, drichtar, mposolda, pjindal, rmartinc, security-response-team, ssilvert, sthorger, vmuzikar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the first broker login flow of Keycloak, an identity and access management solution. The issue occurs when a user submits the Review profile page multiple times, which causes the system to lose track of whether the email address was modified. This can allow an attacker to bypass security protections, leading to unauthorized account linking or the creation of verified accounts with unverified email addresses.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Deadline: 2027-01-26   

Description OSIDB Bzimport 2026-12-01 08:48:57 UTC
A flaw was found in the Keycloak first broker login flow. When a user is prompted to review their profile because an account already exists, submitting the Review profile form a second time without changes causes Keycloak to clear the internal marker that tracks if the email or username was edited. This occurs because the state is not correctly preserved across multiple submissions of the updateProfile action.
Exploitation requires the attacker to have an account at a configured identity provider. In one scenario, this allows an attacker to bypass the fix for CVE-2025-7365 and send a genuine account-linking email to a victim. If the victim clicks the link, the attacker gains full access to the victim account. In another scenario, if Trust Email is enabled, an attacker can create a new account with an arbitrary email address marked as verified without any actual verification occurring.