WaratekVRT Sign in

CVE-2024-7341 Keycloak

Affected softwareKeycloak
Severity7.1 High CVSS 3.1 2 scores
Fixed in22.0.12, 24.0.7, 25.0.5
WeaknessCWE-384
Published9 Sep 2024
Updated27 Aug 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 2 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.85% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: keycloak/keycloak 5e06da2.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.
Candidate fix https://bugzilla.redhat.com/show_bug.cgi?id=2302064 : a Red Hat bug: the triage, which links onward to the fix

CVSS

7.1 HIGH v3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 7.1 HIGH CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H secalert@redhat.com Secondary published
CVSS 3.1 7.1 HIGH CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.keycloak:keycloak-services 0 22.0.12 unbounded
org.keycloak:keycloak-services 23.0.0 24.0.7 unbounded
org.keycloak:keycloak-services 25.0.0 25.0.5 unbounded

Products and versions

4 products, 8 version entries
SourceVendorProductSchemeAffected versions
osv org.keycloak keycloak-services generic < 22.0.12 · ≥ 23.0.0 and < 24.0.7 · ≥ 25.0.0 and < 25.0.5
nvd redhat build of keycloak generic ≥ 22.0 and < 22.0.12 · ≥ 24.0 and < 24.0.7
nvd redhat keycloak generic ≤ 25.0.2
nvd redhat single sign-on generic any version · ≥ 7.6 and < 7.6.10

References

URLTags
https://bugzilla.redhat.com/show_bug.cgi?id=2302064 bugzilla
https://github.com/keycloak/keycloak/security/advisories/GHSA-5rxp-2rhr-qwqv WEB
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
https://access.redhat.com/security/cve/CVE-2024-7341 WEB
https://access.redhat.com/errata/RHSA-2024:6503 WEB
https://access.redhat.com/errata/RHSA-2024:6502 WEB
https://access.redhat.com/errata/RHSA-2024:6501 WEB

Timeline

Published2024-09-09By the CVE Program.
NVD record modified2026-08-27NVD's own last-modified date for this record.