CVE-2024-7341 json
Wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adapters
published 2024-09-09 2 y ago modified 2026-09-08 2 mo ago also BIT-keycloak-2024-7341 , EUVD-2024-2954 , GHSA-5rxp-2rhr-qwqv , GHSA-j76j-rqwj-jmvv
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
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 attacker who hijacks the current session before authentication to trigger session fixation.
Patch / fix
- maven org.keycloak:keycloak-services 22.0.12, 24.0.7, 25.0.5
- bitnami keycloak 22.0.12, 24.0.7
- Red Hat Red Hat build of Keycloak 22 22-17, 22-20, 22.0.12-1
- Red Hat Red Hat build of Keycloak 24 24-16, 24.0.7-4
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 7 0:18.0.16-1.redhat_00001.1.el7sso
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 8 0:18.0.16-1.redhat_00001.1.el8sso
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 9 0:18.0.16-1.redhat_00001.1.el9sso
- Red Hat RHEL-8 based Middleware Containers 7.6-52
- rh-sso7-keycloak red hat single sign on 7.6 18.0.16-1.redhat_00001.1.el8sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.16-1.redhat_00001.1.el8sso
- rh-sso7-keycloak red hat single sign on 7.6 18.0.16-1.redhat_00001.1.el9sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.16-1.redhat_00001.1.el9sso
- rh-sso7-keycloak red hat single sign on 7.6 18.0.16-1.redhat_00001.1.el7sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.16-1.redhat_00001.1.el7sso
red hat advisories RHSA-2024:6494RHSA-2024:6495RHSA-2024:6493
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-7341 updated cvss 7.1
wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adapters
-
Red Hat Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8 7.6-52fixed: vendor fix RHSA-2024:6497
-
Red Hat Build of Keycloakfixed: vendor fix RHSA-2024:6501
-
Red Hat build of Keycloak 22 rhbk/keycloak-rhel9 22-17, rhbk/keycloak-rhel9-operator 22-20, rhbk/keycloak-operator-bundle 22.0.12-1fixed: vendor fix RHSA-2024:6500
-
Red Hat build of Keycloak 24 rhbk/keycloak-rhel9 24-16, rhbk/keycloak-rhel9-operator 24-16, rhbk/keycloak-operator-bundle 24.0.7-4fixed: vendor fix RHSA-2024:6502
-
Red Hat Single Sign-On 7fixed: vendor fix RHSA-2024:6499
-
Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak 18.0.16-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server 18.0.16-1.redhat_00001.1.el7ssofixed: vendor fix RHSA-2024:6493
-
Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak 18.0.16-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server 18.0.16-1.redhat_00001.1.el8ssofixed: vendor fix RHSA-2024:6494
-
Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak 18.0.16-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server 18.0.16-1.redhat_00001.1.el9ssofixed: vendor fix RHSA-2024:6495
show 1 moreshow fewer
-
Red Hat JBoss Enterprise Application Platform 8 keycloak-servicesnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.85% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-services | <22.0.12 >=23.0.0, <24.0.7 >=25.0.0, <25.0.5 |
22.0.12 24.0.7 25.0.5 |
| bitnami | keycloak | >=22.0.0, <22.0.12 >=24.0.0, <24.0.7 |
22.0.12 24.0.7 |
Affected products
- 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
Classification
- Weakness
-
- CWE-384 Session Fixation
References
-
github.com
/keycloak/keycloak/commit/5e06da2f6794c695051605e26a01affa3a18f66b
web
-
github.com
/keycloak/keycloak/commit/5b3de0c7e7f367103affe2f5167913a2ce021cf1
web
-
github.com
/keycloak/keycloak/commit/2341d6ee7a3567c58fd6a04a419fe4403e13374c
web
-
access.redhat.com
/errata/RHSA-2024:6493
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6494
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6495
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6497
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6499
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6500
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6501
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6502
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/errata/RHSA-2024:6503
vendor-advisory, web, mailing-list, discussion
-
access.redhat.com
/security/cve/CVE-2024-7341
vdb-entry, web, vendor-advisory, advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2302064
issue-tracking, web, vendor-advisory, advisory
-
github.com
/advisories/GHSA-j76j-rqwj-jmvv
web
-
github.com
/keycloak/keycloak/security/advisories/GHSA-5rxp-2rhr-qwqv
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-7341
advisory, web
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2024-7341
- GitHub Advisory GHSA-5rxp-2rhr-qwqv
- GitHub Advisory GHSA-j76j-rqwj-jmvv
- NVD CVE-2024-7341
- OSV BIT-keycloak-2024-7341
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.