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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | org.keycloak:keycloak-services | < 22.0.12, 23.0.0 – < 24.0.7, 25.0.0 – < 25.0.5 | 22.0.12 |
| Red Hat | Red Hat Build of Keycloak | — | — |
| Red Hat | Red Hat build of Keycloak 22 | — | — |
| Red Hat | Red Hat build of Keycloak 24 | — | — |
| Red Hat | Red Hat Single Sign-On 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | — |
| Red Hat | RHEL-8 based Middleware Containers | — | — |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 18.0.16-1.redhat_00001.1.el7sso | RHSA-2024:6495, RHSA-2024:6494, RHSA-2024:6493 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services | < 22.0.12 | 22.0.12 | GHSA-5rxp-2rhr-qwqv |
| Maven | org.keycloak:keycloak-services | >= 23.0.0, < 24.0.7 | 24.0.7 | GHSA-5rxp-2rhr-qwqv |
| Maven | org.keycloak:keycloak-services | >= 25.0.0, < 25.0.5 | 25.0.5 | GHSA-5rxp-2rhr-qwqv |
Advisories 5
- RHSA-2024:6495 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2024:6493 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2024:6494 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.10 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Aug 27, 2026
- WID-SEC-2024-2083 Red Hat OpenShift Keycloak: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 17, 2024
- WID-SEC-2024-2080 Keycloak: Schwachstelle Umgehung von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Sep 9, 2024
References
- RHSA-2024:6493 vendor-advisory
- RHSA-2024:6494 vendor-advisory
- RHSA-2024:6495 vendor-advisory
- RHSA-2024:6497 vendor-advisory
- RHSA-2024:6499 vendor-advisory
- RHSA-2024:6500 vendor-advisory
- RHSA-2024:6501 vendor-advisory
- RHSA-2024:6502 vendor-advisory
- RHSA-2024:6503 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-7341 vdb-entry
- RHBZ#2302064 issue-tracking
- https://github.com/advisories/GHSA-j76j-rqwj-jmvv