Skip to content
OpenAdvisories

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References