# Keycloak has session fixation in Elytron SAML adapters

Advisory record · `GHSA-5rxp-2rhr-qwqv`

- **Identifiers:** `GHSA-5rxp-2rhr-qwqv` · `BIT-keycloak-2024-7341` · `CVE-2024-7341` · `GHSA-j76j-rqwj-jmvv`
- **State:** Confirmed
- **Severity:** CVSS 7.1 High
- **Critical:** No
- **Weakness (CWE):** [CWE-384](https://cwe.mitre.org/data/definitions/384.html)
- **Tags:** [Authentication bypass](https://agentprime.io/advisories/tag/auth-bypass.md)
- **Published:** 14 Oct 2024
- **Updated:** 26 Aug 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Oct 2024, 20:55 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.keycloak:keycloak-services` (Maven): affected `<22.0.12 || >=23.0.0, <24.0.7 || >=25.0.0, <25.0.5`; fixed in `22.0.12`, `24.0.7`, `25.0.5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Keycloak's keycloak-services Maven package, versions below 22.0.12, from 23.0.0 before 24.0.7, and from 25.0.0 before 25.0.5, is affected. The session ID and JSESSIONID cookie are not changed at login in the SAML adapters, even when turnOffChangeSessionIdOnLogin is set. An attacker who can place a known session on a victim's browser before authentication may be able to take over that session after login; the source gives few further details. Upgrade to 22.0.12, 24.0.7, or 25.0.5 or later.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.1 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`, from CNA (redhat)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0085, the 58th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 14 Oct 2024, 14:21 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/keycloak/keycloak/security/advisories/GHSA-5rxp-2rhr-qwqv)
- 31 Oct 2026, 14:19 UTC: First seen by agentprime
- 31 Oct 2026, 14:19 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-5rxp-2rhr-qwqv)

## Sources

- [GitHub Advisory Database: GHSA-5rxp-2rhr-qwqv](https://github.com/advisories/GHSA-5rxp-2rhr-qwqv)
- [OSV: GHSA-5rxp-2rhr-qwqv](https://osv.dev/vulnerability/GHSA-5rxp-2rhr-qwqv)
- <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/5e06da2f6794c695051605e26a01affa3a18f66b>
- <https://github.com/keycloak/keycloak/commit/5b3de0c7e7f367103affe2f5167913a2ce021cf1>
- <https://github.com/keycloak/keycloak/commit/2341d6ee7a3567c58fd6a04a419fe4403e13374c>
- <https://github.com/keycloak/keycloak>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2302064>
- <https://access.redhat.com/security/cve/CVE-2024-7341>
- <https://access.redhat.com/errata/RHSA-2024:6503>
- <https://access.redhat.com/errata/RHSA-2024:6502>
- <https://access.redhat.com/errata/RHSA-2024:6501>
- <https://access.redhat.com/errata/RHSA-2024:6500>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-5rxp-2rhr-qwqv>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-5rxp-2rhr-qwqv/>. Everything for agents: <https://agentprime.io/llms.txt>.
