---
id: CVE-2024-7341
title: >-
  A session fixation issue was discovered in the SAML adapters provided by
  Keycloak
summary: >-
  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 …
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-384
vendor: redhat
product: keycloak
affected:
  - keycloak <= 25.0.2
  - 'single_sign-on >= 7.6, < 7.6.10'
  - 'build_of_keycloak >= 22.0, < 22.0.12'
  - 'build_of_keycloak >= 24.0, < 24.0.7'
  - single_sign-on
patched:
  - single_sign-on 7.6.10
  - build_of_keycloak 24.0.7
published: '2024-09-09'
updated: '2026-08-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-7341'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:6493'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6494'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6495'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6497'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6499'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6500'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6501'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6502'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6503'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2024-7341'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2302064'
    label: secalert@redhat.com
  - url: 'https://github.com/advisories/GHSA-j76j-rqwj-jmvv'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00848
epssPercentile: 0.56564
ingestedAt: '2026-08-04T07:37:59.816Z'
---

## Overview

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

- `keycloak <= 25.0.2`
- `single_sign-on >= 7.6, < 7.6.10`
- `build_of_keycloak >= 22.0, < 22.0.12`
- `build_of_keycloak >= 24.0, < 24.0.7`
- `single_sign-on`

## Remediation

Upgrade past the affected range:

- `single_sign-on 7.6.10`
- `build_of_keycloak 24.0.7`
