CVE-2024-7341

Executive Summary

CVE-2024-7341 exposes a session fixation vulnerability in Keycloak's SAML adapters. The session ID and JSESSIONID cookie are not regenerated upon login, even when the turnOffChangeSessionIdOnLogin option is enabled. An attacker who hijacks a session before authentication can force the victim to reuse the same session, enabling credential theft or unauthorized actions. The flaw undermines session integrity and can lead to privilege escalation or data compromise in environments using Keycloak for SAML authentication.


Authoritative CVE Metadata - CVSS Base Score: 7.1 (HIGH) - Published: 2024-09-09T19:15:14.450 - Last Modified: 2026-08-27T13:16:33.747

Original Description: A session fixation issue was discovered in the SAML adapters provided by Keycloak. The session ID and JSESSIONID cookie are not changed at login time, even when the turnOffChangeSessionIdOnLogin option is configured. This flaw allows an attacker who hijacks the current session before authentication to trigger session fixation.

"This is the final test of a gentleman: his respect for those who can be of no possible value to him."

— William Lyon Phelps
Source: NVD