Vulnerability · Published Sep 9, 2024 · Assigned by redhat

CVE-2024-7341Wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adapters

High 7.1

In plain English

A high-severity session fixation in org.keycloak:keycloak-services. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.8%top 41.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.keycloak:keycloak-services22.0.12GHSA-5rxp-2rhr-qwqv
Mavenorg.keycloak:keycloak-services24.0.7GHSA-5rxp-2rhr-qwqv
Mavenorg.keycloak:keycloak-services25.0.5GHSA-5rxp-2rhr-qwqv
Mavenorg.keycloak:keycloak-services25.0.5GHSA-j76j-rqwj-jmvv
Mavenorg.keycloak:keycloak-services22.0.12GHSA-j76j-rqwj-jmvv
Mavenorg.keycloak:keycloak-services24.0.7GHSA-j76j-rqwj-jmvv

Affected products (as reported)

VendorProductVersions
org.keycloak:keycloak-services 0 – before 22.0.1223.0.0 – before 24.0.725.0.0 – before 25.0.5
Red Hat Red Hat Build of Keycloak see references
Red Hat Red Hat Build of Keycloak see references
Red Hat Red Hat build of Keycloak 22 see references
Red Hat Red Hat build of Keycloak 22 see references
Red Hat Red Hat build of Keycloak 22 see references
Red Hat Red Hat build of Keycloak 24 see references
Red Hat Red Hat build of Keycloak 24 see references
Red Hat Red Hat build of Keycloak 24 see references
Red Hat Red Hat Single Sign-On 7 see references
Red Hat Red Hat Single Sign-On 7.6 for RHEL 7 see references
Red Hat Red Hat Single Sign-On 7.6 for RHEL 8 see references
Red Hat Red Hat Single Sign-On 7.6 for RHEL 9 see references
Red Hat RHEL-8 based Middleware Containers see references
Red Hat Red Hat JBoss Enterprise Application Platform 8 see references

Weakness: CWE-384 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

References