CVE-2024-7341: A session fixation issue was discovered in the SAML adapters provided by Keycloak
44
This month
HIGH 7.1WATCHLISTUPGRADEUPGRADEUPGRADE
CVE-2024-7341 is a high-severity flaw (CVSS 7.1) affecting keycloak, single sign-on, build of keycloak. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-7341?
keycloak: upgrade to newer than 25.0.2; single sign-on: upgrade to 7.6.10; build of keycloak: upgrade to 22.0.12, 24.0.7. Exact commands for each OS are on this page.
Is CVE-2024-7341 being exploited?
CVE-2024-7341 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-7341 affect?
CVE-2024-7341 affects keycloak, single sign-on, build of keycloak. Severity is high (CVSS 7.1). 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 att