CVE-2024-7341
HIGH 7.1CVSS 3.1Keycloak has session fixation in Elytron SAML adapters
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.
- Published
- 9 Sep 2024
- Last modified
- 27 Aug 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-384
- Also known as
- BIT-keycloak-2024-7341GHSA-5rxp-2rhr-qwqvGHSA-j76j-rqwj-jmvv
- Sources
- NVDJSONOSV GHSA-5rxp-2rhr-qwqvJSONOSV GHSA-j76j-rqwj-jmvvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* |
<= 25.0.2 | |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:*:*:*:*:*:*:*:* |
>= 7.6, < 7.6.10 | 7.6.10 |
| NVD | redhat | build_of_keycloakcpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:* |
>= 22.0, < 22.0.12 | 22.0.12 |
| NVD | redhat | build_of_keycloakcpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:* |
>= 24.0, < 24.0.7 | 24.0.7 |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* |
(no version) | |
| OSV | Maven | org.keycloak:keycloak-services | < 22.0.12 | 22.0.12 |
| OSV | Maven | org.keycloak:keycloak-services | >= 23.0.0, < 24.0.7 | 24.0.7 |
| OSV | Maven | org.keycloak:keycloak-services | >= 25.0.0, < 25.0.5 | 25.0.5 |
References
- https://access.redhat.com/errata/RHSA-2024:6493 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6494 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6495 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6497 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6499 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6500 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6501 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6502 · Mailing List, WEB
- https://access.redhat.com/errata/RHSA-2024:6503 · Mailing List, WEB
- https://access.redhat.com/security/cve/CVE-2024-7341 · Vendor Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2302064 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/advisories/GHSA-j76j-rqwj-jmvv
- https://github.com/keycloak/keycloak/security/advisories/GHSA-5rxp-2rhr-qwqv · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-7341 · ADVISORY
- https://github.com/keycloak/keycloak/commit/5e06da2f6794c695051605e26a01affa3a18f66b · WEB
- https://github.com/keycloak/keycloak/commit/5b3de0c7e7f367103affe2f5167913a2ce021cf1 · WEB
- https://github.com/keycloak/keycloak/commit/2341d6ee7a3567c58fd6a04a419fe4403e13374c · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 9 Sep 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Sep 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 14 Oct 2024)