{"id":"CVE-2024-7341","aliases":["CVE-2024-7341","GHSA-5rxp-2rhr-qwqv","BIT-KEYCLOAK-2024-7341","GHSA-j76j-rqwj-jmvv"],"related":[],"kind":"vulnerability","state":"published","title":"Wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adapters","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-5rxp-2rhr-qwqv. This link is maintained to preserve external references.\n\n# Original Description\nA 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se descubrió un problema de fijación de sesión en los adaptadores SAML proporcionados por Keycloak. El ID de sesión y la cookie JSESSIONID no se modifican en el momento de iniciar sesión, incluso cuando está configurada la opción turnOffChangeSessionIdOnLogin. Esta falla permite que un atacante que secuestra la sesión actual antes de la autenticación active la fijación de sesión.","source":"nvd"}],"published":"2024-09-09T18:51:13.537Z","modified":"2026-09-08T08:48:06.617Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-384"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"22.0.12","status":"affected"},{"type":"semver","introduced":"23.0.0","fixed":"24.0.7","status":"affected"},{"type":"semver","introduced":"25.0.0","fixed":"25.0.5","status":"affected"}],"package":"org.keycloak:keycloak-services","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Keycloak","package":"keycloak-services","cpe":"cpe:/a:redhat:build_keycloak:22","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Keycloak","package":"keycloak-services","cpe":"cpe:/a:redhat:build_keycloak:24","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"22.0.12-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:22::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"22-17","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:22::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"22-20","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:22::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"24.0.7-4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:24::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"24-16","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:24::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"24-16","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:24::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"keycloak-services","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:18.0.16-1.redhat_00001.1.el7sso","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 7","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el7","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:18.0.16-1.redhat_00001.1.el8sso","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 8","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:18.0.16-1.redhat_00001.1.el9sso","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 9","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"7.6-52","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"RHEL-8 based Middleware Containers","package":"rh-sso-7/sso76-openshift-rhel8","cpe":"cpe:/a:redhat:rhosemc:1.0::el8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"keycloak-services","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"22.0.12"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"23.0.0","status":"affected","fixed":"24.0.7"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"25.0.0","status":"affected","fixed":"25.0.5"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"25.0.0","status":"affected","fixed":"25.0.5"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"22.0.12"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"23.0.0","status":"affected","fixed":"24.0.7"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"25.0.2"}],"vendor":"redhat","product":"keycloak","cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.6","fixed":"7.6.10"}],"vendor":"redhat","product":"single_sign-on","cpe":"cpe:2.3:a:redhat:single_sign-on:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"22.0","fixed":"22.0.12"},{"status":"affected","introduced":"24.0","fixed":"24.0.7"}],"vendor":"redhat","product":"build_of_keycloak","cpe":"cpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"22.0.0","status":"affected","fixed":"22.0.12"},{"type":"semver","introduced":"24.0.0","status":"affected","fixed":"24.0.7"}],"ecosystem":"Bitnami","package":"keycloak","purl":"pkg:bitnami/keycloak","source":"bitnami"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:6493","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6494","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6495","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6497","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6499","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6500","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6501","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6502","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6503","tags":["discussion","mailing-list","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-7341","tags":["advisory","vdb-entry","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2302064","tags":["advisory","issue-tracking","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/advisories/GHSA-j76j-rqwj-jmvv","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-5rxp-2rhr-qwqv","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7341","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/keycloak/keycloak/commit/5e06da2f6794c695051605e26a01affa3a18f66b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/5b3de0c7e7f367103affe2f5167913a2ce021cf1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/2341d6ee7a3567c58fd6a04a419fe4403e13374c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-09-09T19:59:06.075Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-7341","url":"https://www.cve.org/CVERecord?id=CVE-2024-7341","licence":"CVE Terms of Use","modified":"2026-08-27T09:54:13.737Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5rxp-2rhr-qwqv","url":"https://github.com/advisories/GHSA-5rxp-2rhr-qwqv","licence":"CC-BY-4.0","modified":"2026-08-26T01:11:37.374Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j76j-rqwj-jmvv","url":"https://github.com/advisories/GHSA-j76j-rqwj-jmvv","licence":"CC-BY-4.0","modified":"2026-08-26T01:11:27.706Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-7341","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7341","licence":"Public domain","modified":"2026-08-27T13:16:33.747Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-KEYCLOAK-2024-7341","url":"https://osv.dev/vulnerability/BIT-KEYCLOAK-2024-7341","licence":"Apache-2.0","modified":"2026-09-08T08:48:06.617Z"}],"updatedAt":"2026-11-25T22:58:45.190Z","epss":{"score":0.00848,"percentile":0.59253,"date":"2026-12-02T12:00:21.000Z"}}