Keycloak has session fixation in Elytron SAML adapters
Date: 2024-10
Affected: maven/org.keycloak:keycloak-services, maven/org.keycloak:keycloak-services, maven/org.keycloak:keycloak-services
Attack vector: other
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2024-7341
CWE: CWE-384
CVSS: 7.1 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H)

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.


Mitigations:

Architectural layers (MAESTRO):