cve.bz

CVE-2024-7341 redhat: Session Fixation

7.1 highEPSS 0.8%Fix available

High (7.1) in redhat. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-services 22.0.12, 24.0.7, 25.0.5.

On this page
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.

Severity

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
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-09-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-384 Session Fixation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • org.keycloak:keycloak-services (Maven): fixed in 22.0.12, 24.0.7, 25.0.5
  • Red Hat Red Hat build of Keycloak 22: fixed in 22.0.12-1
  • Red Hat Red Hat build of Keycloak 22: fixed in 22-17
  • Red Hat Red Hat build of Keycloak 22: fixed in 22-20
  • Red Hat Red Hat build of Keycloak 24: fixed in 24.0.7-4
  • Red Hat Red Hat build of Keycloak 24: fixed in 24-16
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 7: fixed in 0:18.0.16-1.redhat_00001.1.el7sso
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 8: fixed in 0:18.0.16-1.redhat_00001.1.el8sso
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 9: fixed in 0:18.0.16-1.redhat_00001.1.el9sso
  • Red Hat: fixed package versions per release
  • Vendor advisory: https://access.redhat.com/security/cve/CVE-2024-7341
  • Vendor advisory: https://bugzilla.redhat.com/show_bug.cgi?id=2302064

Ask an AI about this CVE

Show the promptExplain CVE-2024-7341 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-7341?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-7341?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-7341 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat build of Keycloak 2222.0.12-1
Red Hat build of Keycloak 2222-17
Red Hat build of Keycloak 2222-20
Red Hat build of Keycloak 2424.0.7-4
Red Hat build of Keycloak 2424-16
Red Hat Single Sign-On 7.6 for RHEL 70:18.0.16-1.redhat_00001.1.el7sso
Red Hat Single Sign-On 7.6 for RHEL 80:18.0.16-1.redhat_00001.1.el8sso
Red Hat Single Sign-On 7.6 for RHEL 90:18.0.16-1.redhat_00001.1.el9sso
Red Hat RHEL-8 based Middleware Containers7.6-52

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5rxp-2rhr-qwqvMavenorg.keycloak:keycloak-services<22.0.1222.0.12
GHSA-5rxp-2rhr-qwqvMavenorg.keycloak:keycloak-services>=23.0.0 <24.0.724.0.7
GHSA-5rxp-2rhr-qwqvMavenorg.keycloak:keycloak-services>=25.0.0 <25.0.525.0.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatred_hat_single_sign_on:7.6::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.16-1.redhat_00001.1.el7ssoRHSA-2024:6493
Red Hatred_hat_single_sign_on:7.6::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.16-1.redhat_00001.1.el8ssoRHSA-2024:6494
Red Hatred_hat_single_sign_on:7.6::el9rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.16-1.redhat_00001.1.el9ssoRHSA-2024:6495

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is categorized as moderate severity rather than critical due to its specific exploitation conditions and impact. While it presents a session fixation risk, the attacker must first hijack a session before authentication. This pre-condition limits the exploitation vector to scenarios where an attacker has already gained some level of access or control. Additionally, the attack only impacts sessions where the `turnOffChangeSessionIdOnLogin` option is not set to true. Consequently, while it does pose a risk by potentially allowing unauthorized access if the session ID is not updated, the overall likelihood and impact of successful exploitation are mitigated by these constraints.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Build of Keycloakkeycloak-servicesFixed 2024-09-09RHSA-2024:6501
Red Hat Build of Keycloakkeycloak-servicesFixed 2024-09-09RHSA-2024:6503
Red Hat build of Keycloak 22rhbk/keycloak-operator-bundle:22.0.12-1Fixed 2024-09-09RHSA-2024:6500
Red Hat build of Keycloak 22rhbk/keycloak-rhel9:22-17Fixed 2024-09-09RHSA-2024:6500
Red Hat build of Keycloak 22rhbk/keycloak-rhel9-operator:22-20Fixed 2024-09-09RHSA-2024:6500
Red Hat build of Keycloak 24rhbk/keycloak-operator-bundle:24.0.7-4Fixed 2024-09-09RHSA-2024:6502
Red Hat build of Keycloak 24rhbk/keycloak-rhel9:24-16Fixed 2024-09-09RHSA-2024:6502
Red Hat build of Keycloak 24rhbk/keycloak-rhel9-operator:24-16Fixed 2024-09-09RHSA-2024:6502
Red Hat Single Sign-On 7keycloak-servicesFixed 2024-09-09RHSA-2024:6499
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.16-1.redhat_00001.1.el7ssoFixed 2024-09-09RHSA-2024:6493
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.16-1.redhat_00001.1.el8ssoFixed 2024-09-09RHSA-2024:6494
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak-0:18.0.16-1.redhat_00001.1.el9ssoFixed 2024-09-09RHSA-2024:6495
RHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8:7.6-52Fixed 2024-09-09RHSA-2024:6497
Red Hat JBoss Enterprise Application Platform 8keycloak-servicesNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-7341.

Attack patterns (CAPEC)

  • CAPEC-21 Exploitation of Trusted Identifiers Likelihood: High · Severity: High
  • CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies Likelihood: High · Severity: High
  • CAPEC-39 Manipulating Opaque Client-based Data Tokens Likelihood: High · Severity: Medium
  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-60 Reusing Session IDs (aka Session Replay) Likelihood: High · Severity: High
  • CAPEC-61 Session Fixation Likelihood: Medium · Severity: High
  • CAPEC-196 Session Credential Falsification through Forging Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON