CVE-2024-8698 - CVE House
Back to Database
Status published High CVE-2024-8698

Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak

Vulnerability Description

A flaw exists in the SAML signature validation method within the Keycloak XMLSignatureUtil class. The method incorrectly determines whether a SAML signature is for the full document or only for specific assertions based on the position of the signature in the XML document, rather than the Reference element used to specify the signed element. This flaw allows attackers to create crafted responses that can bypass the validation, potentially leading to privilege escalation or impersonation attacks.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-8698

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • Red Hat would like to thank Tanner Emek for reporting this issue.

Affected Vendor

Affected Software

Red Hat Build of Keycloak, Red Hat build of Keycloak 22, Red Hat build of Keycloak 24, Red Hat JBoss Enterprise Application Platform 8, Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8, Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9, Red Hat Single Sign-On 7, Red Hat Single Sign-On 7.6 for RHEL 7, Red Hat Single Sign-On 7.6 for RHEL 8, Red Hat Single Sign-On 7.6 for RHEL 9, RHEL-8 based Middleware Containers
Vulnerable Versions:
0, 22.0.13-1, 22-18, 22-21, 24.0.8-1, 24-17, 0:2.33.0-1.redhat_00015.1.el8eap, 1:2.0.0-2.redhat_00005.1.el8eap, 0:1.8.0-2.redhat_00001.1.el8eap, 0:2.2.0-2.redhat_00001.1.el8eap, 0:1.16.1-2.redhat_00007.1.el8eap, 0:3.2.2-28.redhat_2.1.el8eap, 0:2.15.1-1.redhat_00001.1.el8eap, 0:3.14.0-2.redhat_00006.1.el8eap, 0:4.0.5-1.redhat_00001.1.el8eap, 0:2.0.1-1.redhat_00002.1.el8eap, 0:0.1.0-2.redhat_00010.1.el8eap, 0:1.12.284-2.redhat_00002.1.el8eap, 0:1.2.5-2.redhat_00001.1.el8eap, 0:800.4.0-1.GA_redhat_00001.1.el8eap, 0:2.1.0-4.redhat_00001.1.el8eap, 0:6.2.31-1.Final_redhat_00002.1.el8eap, 0:8.0.1-3.Final_redhat_00001.1.el8eap, 0:0.8.1-2.redhat_00001.1.el8eap, 0:1.1.3-1.redhat_00001.1.el8eap, 0:3.0.1-1.redhat_00001.1.el8eap, 0:3.5.3-1.Final_redhat_00001.1.el8eap, 0:4.0.2-1.redhat_00001.1.el8eap, 0:5.3.10-1.Final_redhat_00001.1.el8eap, 0:2.22.1-1.redhat_00002.1.el8eap, 0:6.0.3-1.Final_redhat_00001.1.el8eap, 0:9.37.3-1.redhat_00001.1.el8eap, 0:9.6.0-1.redhat_00002.1.el8eap, 0:2.3.0-1.redhat_00001.1.el8eap, 0:2.0.1-3.Final_redhat_00001.1.el8eap, 0:3.0.1-2.Final_redhat_00001.1.el8eap, 0:3.0.4-1.redhat_00001.1.el8eap, 0:8.0.0-6.redhat_00001.1.el8eap, 0:2.0.16-1.redhat_00001.1.el8eap, 0:2.2.0-1.redhat_00001.1.el8eap, 0:8.0.4-2.GA_redhat_00005.1.el8eap, 0:2.33.0-1.redhat_00015.1.el9eap, 1:2.0.0-2.redhat_00005.1.el9eap, 0:1.8.0-2.redhat_00001.1.el9eap, 0:2.2.0-2.redhat_00001.1.el9eap, 0:1.16.1-2.redhat_00007.1.el9eap, 0:3.2.2-28.redhat_2.1.el9eap, 0:2.15.1-1.redhat_00001.1.el9eap, 0:3.14.0-2.redhat_00006.1.el9eap, 0:4.0.5-1.redhat_00001.1.el9eap, 0:2.0.1-1.redhat_00002.1.el9eap, 0:0.1.0-2.redhat_00010.1.el9eap, 0:1.12.284-2.redhat_00002.1.el9eap, 0:1.2.5-2.redhat_00001.1.el9eap, 0:800.4.0-1.GA_redhat_00001.1.el9eap, 0:2.1.0-4.redhat_00001.1.el9eap, 0:6.2.31-1.Final_redhat_00002.1.el9eap, 0:8.0.1-3.Final_redhat_00001.1.el9eap, 0:0.8.1-2.redhat_00001.1.el9eap, 0:1.1.3-1.redhat_00001.1.el9eap, 0:3.0.1-1.redhat_00001.1.el9eap, 0:3.5.3-1.Final_redhat_00001.1.el9eap, 0:4.0.2-1.redhat_00001.1.el9eap, 0:5.3.10-1.Final_redhat_00001.1.el9eap, 0:2.22.1-1.redhat_00002.1.el9eap, 0:6.0.3-1.Final_redhat_00001.1.el9eap, 0:9.37.3-1.redhat_00001.1.el9eap, 0:9.6.0-1.redhat_00002.1.el9eap, 0:2.3.0-1.redhat_00001.1.el9eap, 0:2.0.1-3.Final_redhat_00001.1.el9eap, 0:3.0.1-2.Final_redhat_00001.1.el9eap, 0:3.0.4-1.redhat_00001.1.el9eap, 0:8.0.0-6.redhat_00001.1.el9eap, 0:2.0.16-1.redhat_00001.1.el9eap, 0:2.2.0-1.redhat_00001.1.el9eap, 0:8.0.4-2.GA_redhat_00005.1.el9eap, 0:18.0.18-1.redhat_00001.1.el7sso, 0:18.0.18-1.redhat_00001.1.el8sso, 0:18.0.18-1.redhat_00001.1.el9sso, 7.6-54

Timeline

Official Publish: September 19th, 2024
Last Modified: April 1st, 2026
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L

Weaknesses (CWE)