Wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adapters
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-384.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | org.keycloak:keycloak-services | before 22.0.12; 23.0.0 to before 24.0.7; 25.0.0 to before 25.0.5 | 22.0.12, 24.0.7, 25.0.5 | Patch available | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | Not affected | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22.0.12-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-17 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-20 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 24 | — | 24.0.7-4 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 24 | — | 24-16 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 24 | — | 24-16 | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7 | — | — | Not affected | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | 18.0.16-1.redhat_00001.1.el7sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | 18.0.16-1.redhat_00001.1.el8sso | Patch available | CNA |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | 18.0.16-1.redhat_00001.1.el9sso | Patch available | CNA |
| Red Hat | RHEL-8 based Middleware Containers | — | 7.6-52 | Patch available | CNA |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | — | — | Not affected | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 22.0.12 | 22.0.12 | Patch available | GHSA-5rxp-2rhr-qwqv |
| — | org.keycloak:keycloak-services (Maven) | 23.0.0 to before 24.0.7 | 24.0.7 | Patch available | GHSA-5rxp-2rhr-qwqv |
| — | org.keycloak:keycloak-services (Maven) | 25.0.0 to before 25.0.5 | 25.0.5 | Patch available | GHSA-5rxp-2rhr-qwqv |
- org.keycloak:keycloak-services Vendor— Affected before 22.0.12; 23.0.0 to before 24.0.7; 25.0.0 to before 25.0.5 Fixed in 22.0.12, 24.0.7, 25.0.5 Patch available CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22.0.12-1 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-17 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-20 Patch available CNA
- Red Hat build of Keycloak 24 VendorRed Hat Affected — Fixed in 24.0.7-4 Patch available CNA
- Red Hat build of Keycloak 24 VendorRed Hat Affected — Fixed in 24-16 Patch available CNA
- Red Hat build of Keycloak 24 VendorRed Hat Affected — Fixed in 24-16 Patch available CNA
- Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.16-1.redhat_00001.1.el7sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.16-1.redhat_00001.1.el8sso Patch available CNA
- Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.16-1.redhat_00001.1.el9sso Patch available CNA
- RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-52 Patch available CNA
- Red Hat JBoss Enterprise Application Platform 8 VendorRed Hat Affected — Fixed in — Not affected CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 22.0.12 Fixed in 22.0.12 Patch available GHSA-5rxp-2rhr-qwqv
- org.keycloak:keycloak-services (Maven) Vendor— Affected 23.0.0 to before 24.0.7 Fixed in 24.0.7 Patch available GHSA-5rxp-2rhr-qwqv
- org.keycloak:keycloak-services (Maven) Vendor— Affected 25.0.0 to before 25.0.5 Fixed in 25.0.5 Patch available GHSA-5rxp-2rhr-qwqv
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* | up to 25.0.2 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:single_sign-on:*:*:*:*:*:*:*:* | 7.6 to before 7.6.10 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* | 7.0 | Running on | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Running on | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* | 9.0 | Running on | Red Hat |
| cpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:* | 22.0 to before 22.0.12; 24.0 to before 24.0.7 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* | not specified by NVD | Vulnerable | Red Hat |
- cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* Versions up to 25.0.2 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:single_sign-on:*:*:*:*:*:*:*:* Versions 7.6 to before 7.6.10 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Running on ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Running on ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Running on ·Red Hat
- cpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:* Versions 22.0 to before 22.0.12; 24.0 to before 24.0.7 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
Remediation
- Fix · CNA org.keycloak:keycloak-services Fixed in 22.0.12, 24.0.7, 25.0.5
- Fix · GHSA-5rxp-2rhr-qwqv org.keycloak:keycloak-services (Maven) Fixed in 22.0.12 Advisory →
- Fix · GHSA-5rxp-2rhr-qwqv org.keycloak:keycloak-services (Maven) Fixed in 24.0.7 Advisory →
- Fix · GHSA-5rxp-2rhr-qwqv org.keycloak:keycloak-services (Maven) Fixed in 25.0.5 Advisory →
Red Hat 9 advisories
- RHSA-2024:6497 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 for OpenShift image enhancement update
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
- RHSA-2024:6495 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update on RHEL 9
- 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.el9sso
- RHSA-2024:6500 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 22.0.12 Images Update
- Red Hat build of Keycloak 22 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
Show 6 more Red Hat advisories
- RHSA-2024:6503 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 24.0.7 Update
- Red Hat Build of Keycloak
- RHSA-2024:6502 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 24.0.7 Images Update
- Red Hat build of Keycloak 24 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2024:6494 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update on RHEL 8
- 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.el8sso
- RHSA-2024:6501 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 22.0.12 Update
- Red Hat Build of Keycloak
- RHSA-2024:6493 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update on RHEL 7
- 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.el7sso
- RHSA-2024:6499 Released 2024-09-09 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.10 security update
- Red Hat Single Sign-On 7
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Red Hat Build of Keycloak, Red Hat build of Keycloak 24 — RHSA-2024:6502
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2024-06725 Keycloak-core: open redirect on account pagePriority LOW 28
- TI-2024-06779 Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverityPriority LOW 22
- Advisory ·
Red Hat Build of Keycloak, Red Hat build of Keycloak 24 — RHSA-2024:6503
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2024-06725 Keycloak-core: open redirect on account pagePriority LOW 28
- TI-2024-06779 Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverityPriority LOW 22
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Middleware Containers for OpenShift | Fixed | RHSA-2024:6497 |
| Red Hat Build of Keycloak | Fixed | RHSA-2024:6501 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2024:6499 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2024:6493 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2024:6494 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2024:6495 |
| Red Hat build of Keycloak 22 | Fixed | RHSA-2024:6500 |
| Red Hat build of Keycloak 24 | Fixed | RHSA-2024:6502 |
Not affected: 1 product
- Red Hat JBoss Enterprise Application Platform 8
Timeline
- 2026-10-02 Threatist record created from CVE-2024-7341
- 2026-10-03 Alias added: GHSA-5rxp-2rhr-qwqv
References
Advisory 12
Other 6
- https://github.com/advisories/GHSA-j76j-rqwj-jmvv
- https://github.com/keycloak/keycloak/security/advisories/GHSA-5rxp-2rhr-qwqv
- 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
More Red Hat Build Of Keycloak vulnerabilities
- TI-2026-02223 Keycloak: keycloak: unauthorized authentication via disabled saml identity provider CVSS 3.1HIGH 8.1
- TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
- TI-2026-13740 Keycloak-services: keycloak-services: saml idp-initiated broker login bypasses link-only restriction CVSS 3.1CRITICAL 9.8
- TI-2026-13741 Keycloak-services: keycloak-services: saml broker metadata import disables response signature validation CVSS 3.1CRITICAL 9.1
- TI-2026-13106 Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation CVSS 3.1HIGH 8.8
- TI-2026-02631 Authentication bypass in Red Hat build of Keycloak 26.2 CVSS 3.1HIGH 8.8
Sources
- CVE-2024-7341 · CVE Program
- CVE-2024-7341 · NVD
- FIRST EPSS
- GHSA-5rxp-2rhr-qwqv · GitHub Advisory Database · CC BY 4.0
- CVE-2024-7341 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences