Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-11429 Overview
CVE-2025-11429 is a session management logic flaw in Keycloak, Red Hat's open source identity and access management platform. Keycloak does not immediately enforce the disabling of the Remember Me realm setting on existing user sessions. Sessions established while Remember Me was active retain their extended lifetime even after an administrator disables the feature. This overrides the intended security configuration change and prolongs the window in which an attacker with a stolen session artifact can maintain access. The flaw is tracked under [CWE-613: Insufficient Session Expiration].
Critical Impact
Administrators who disable Remember Me in response to a suspected credential or session compromise cannot immediately revoke the long-lived sessions previously issued, leaving a persistent hijacking window.
Affected Products
- Red Hat build of Keycloak (see Red Hat Security Advisory RHSA-2025:22088)
- Red Hat Single Sign-On / Keycloak downstream builds (see Red Hat Security Advisory RHSA-2025:22089)
- Upstream Keycloak prior to versions 26.4.1 and 26.5.0 (see GitHub Keycloak Issue #43328)
Discovery Timeline
- 2025-10-23 - CVE-2025-11429 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-11429
Vulnerability Analysis
Keycloak's Remember Me feature grants user sessions an extended lifetime when the corresponding checkbox is selected at login. The session lifetime is evaluated using a remember-me flag stored on the session itself rather than the current realm-level configuration. When an administrator later disables Remember Me for the realm, Keycloak continues to honor the extended expiration for pre-existing sessions. Refresh tokens tied to those sessions also remain valid until their original expiration. An attacker who has previously captured a session cookie or refresh token can therefore maintain access beyond the point at which administrators intended to revoke it.
Root Cause
The defect is a stateful trust decision made without revalidation. The session expiration logic reads the per-session remember-me attribute set at authentication time and does not cross-check it against the current realm configuration. Disabling the realm setting mutates configuration state but leaves existing session state untouched, producing a stale-trust condition consistent with [CWE-613].
Attack Vector
Exploitation requires an attacker who already holds a valid Remember Me session artifact, such as a stolen cookie or leaked refresh token. The attacker replays the artifact against Keycloak endpoints. Because the session-local flag still evaluates as valid, Keycloak accepts the request and issues new tokens. The realm administrator's mitigation action, disabling Remember Me, does not curtail the attacker's window of access.
The following patch documentation describes the fixed behavior and the pre-patch limitation:
=== User sessions created with "Remember Me" are no longer valid if "Remember Me" is disabled for the realm
When the "Remember Me" option is disabled in the realm settings, all user sessions previously created with the "Remember Me" flag are now considered invalid.
Users will be required to log in again, and any associated refresh tokens will no longer be usable.
User sessions created without selecting "Remember Me" are not affected.
Source: GitHub Keycloak Commit a3409410
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2025-11429
Indicators of Compromise
- Authentication events showing refresh token use tied to sessions created before a Remember Me disablement event in the realm audit log.
- Long-lived active sessions in the Keycloak admin console whose Remember Me attribute is true while the realm setting is currently false.
- Repeated token refresh activity from IP addresses or user agents that differ from the original authentication event for the same session ID.
Detection Strategies
- Correlate Keycloak UPDATE_REALM events that toggle rememberMe off with subsequent REFRESH_TOKEN or CODE_TO_TOKEN events referencing pre-existing session IDs.
- Query the session store for sessions whose remember-me flag conflicts with the current realm configuration and flag them for review.
- Baseline typical session durations per user; alert on sessions that exceed the standard ssoSessionMaxLifespan for the realm.
Monitoring Recommendations
- Forward Keycloak admin and event logs to a centralized SIEM and alert on realm configuration changes involving session or Remember Me settings.
- Monitor refresh token issuance rates per session and per user for anomalies following any session-policy change.
- Track geographic and device deltas between the original login and later token refresh operations for the same session.
How to Mitigate CVE-2025-11429
Immediate Actions Required
- Upgrade Keycloak to a patched release that includes the fixes from commits a34094100716b7c69ae38eaed6678ab4344d0a1d and bda0e2a67c8cf41d1b3d9010e6dfcddaf79bf59b.
- Apply the corresponding Red Hat updates from RHSA-2025:22088 and RHSA-2025:22089 for Red Hat build of Keycloak.
- After patching, disable and re-enable Remember Me where appropriate, then force logout of all active user sessions to invalidate any remaining long-lived sessions.
Patch Information
Upstream fixes were merged in Keycloak versions 26.4.1 and 26.5.0. Post-patch behavior invalidates any session created with the Remember Me flag once the realm-level setting is disabled, and revokes associated refresh tokens on next use. Full remediation details are available in the Red Hat CVE Report CVE-2025-11429 and Red Hat Bug Report #2402148.
Workarounds
- Manually terminate all active user sessions from the Keycloak admin console after disabling Remember Me to purge any sessions still holding the extended lifetime.
- Rotate realm signing keys so that outstanding refresh tokens cannot be exchanged for new access tokens.
- Reduce ssoSessionMaxLifespanRememberMe to a value close to the standard SSO session lifespan to limit the impact of stale Remember Me sessions.
# Force logout of all sessions for a realm using kcadm.sh
/opt/keycloak/bin/kcadm.sh config credentials \
--server https://keycloak.example.com \
--realm master \
--user admin
/opt/keycloak/bin/kcadm.sh create \
realms/<REALM_NAME>/logout-all
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

