CVE-2024-7341: Keycloak has session fixation in Elytron SAML adapters
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.
Published Oct 14, 2024 · Updated Dec 20, 2024
Affected packages
org.keycloak:keycloak-services
- Ecosystem
- Maven
- Affected
- <= 22.0.11
- Fixed in
- 22.0.12
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services
org.keycloak:keycloak-services
- Ecosystem
- Maven
- Affected
- >= 23.0.0, <= 24.0.6
- Fixed in
- 24.0.7
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services
org.keycloak:keycloak-services
- Ecosystem
- Maven
- Affected
- >= 25.0.0, < 25.0.5
- Fixed in
- 25.0.5
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to Chetven.
References
- https://github.com/keycloak/keycloak/security/advisories/GHSA-5rxp-2rhr-qwqv
- https://nvd.nist.gov/vuln/detail/CVE-2024-7341
- https://github.com/keycloak/keycloak/commit/2341d6ee7a3567c58fd6a04a419fe4403e13374c
- https://github.com/keycloak/keycloak/commit/5b3de0c7e7f367103affe2f5167913a2ce021cf1
- https://github.com/keycloak/keycloak/commit/5e06da2f6794c695051605e26a01affa3a18f66b
- https://access.redhat.com/errata/RHSA-2024:6493
- https://access.redhat.com/errata/RHSA-2024:6494
- https://access.redhat.com/errata/RHSA-2024:6495
- https://access.redhat.com/errata/RHSA-2024:6497
- https://access.redhat.com/errata/RHSA-2024:6499
- https://access.redhat.com/errata/RHSA-2024:6500
- https://access.redhat.com/errata/RHSA-2024:6501
- https://access.redhat.com/errata/RHSA-2024:6502
- https://access.redhat.com/errata/RHSA-2024:6503
- https://access.redhat.com/security/cve/CVE-2024-7341
- https://bugzilla.redhat.com/show_bug.cgi?id=2302064
- https://github.com/advisories/GHSA-5rxp-2rhr-qwqv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-11800
Keycloak has authentication bypass via jwt algorithm confusion
high8.1Nov 3, 2026CVE-2026-9083
Keycloak vulnerable to information disclosure through arbitrary filesystem path probing
medium4.9Oct 29, 2026CVE-2026-9086
Keycloak vulnerable to cross-site scripting (xss) via case-insensitive uri validation bypass
high7.3Oct 29, 2026CVE-2026-9705
Keycloak: Attacker can re-enable and take over disabled clients via registration access token
medium6.5Oct 29, 2026CVE-2026-9799
Keycloak allows unauthorized access to resources via uma permission ticket bypass
medium4.6Oct 29, 2026CVE-2026-9800
Keycloak vulnerable to authorization bypass via incorrect uri comparison
high8.1Oct 29, 2026
