CVE-2024-8698: Red Hat Build Of Keycloak

High severity, CVSS 7.7. EPSS: 2% chance of exploitation in the next 30 days.

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.

Affected products

  • Red Hat Red Hat Build Of Keycloak
  • Red Hat Red Hat Build Of Keycloak 22: before 22.0.13-1 (fixed in 22.0.13-1); before 22-18 (fixed in 22-18); before 22-21 (fixed in 22-21)
  • Red Hat Red Hat Build Of Keycloak 24: before 24.0.8-1 (fixed in 24.0.8-1); before 24-17 (fixed in 24-17)
  • Red Hat Red Hat JBoss Enterprise Application Platform 8
  • Red Hat Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 8: before 0:2.33.0-1.redhat_00015.1.el8eap (fixed in 0:2.33.0-1.redhat_00015.1.el8eap); before 1:2.0.0-2.redhat_00005.1.el8eap (fixed in 1:2.0.0-2.redhat_00005.1.el8eap); before 0:1.8.0-2.redhat_00001.1.el8eap (fixed in 0:1.8.0-2.redhat_00001.1.el8eap); before 0:2.2.0-2.redhat_00001.1.el8eap (fixed in 0:2.2.0-2.redhat_00001.1.el8eap); before 0:1.16.1-2.redhat_00007.1.el8eap (fixed in 0:1.16.1-2.redhat_00007.1.el8eap); before 0:3.2.2-28.redhat_2.1.el8eap (fixed in 0:3.2.2-28.redhat_2.1.el8eap); …
  • Red Hat Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 9: before 0:2.33.0-1.redhat_00015.1.el9eap (fixed in 0:2.33.0-1.redhat_00015.1.el9eap); before 1:2.0.0-2.redhat_00005.1.el9eap (fixed in 1:2.0.0-2.redhat_00005.1.el9eap); before 0:1.8.0-2.redhat_00001.1.el9eap (fixed in 0:1.8.0-2.redhat_00001.1.el9eap); before 0:2.2.0-2.redhat_00001.1.el9eap (fixed in 0:2.2.0-2.redhat_00001.1.el9eap); before 0:1.16.1-2.redhat_00007.1.el9eap (fixed in 0:1.16.1-2.redhat_00007.1.el9eap); before 0:3.2.2-28.redhat_2.1.el9eap (fixed in 0:3.2.2-28.redhat_2.1.el9eap); …
  • Red Hat Red Hat Single Sign-On 7
  • Red Hat Red Hat Single Sign-On 7.6 For Rhel 7: before 0:18.0.18-1.redhat_00001.1.el7sso (fixed in 0:18.0.18-1.redhat_00001.1.el7sso)
  • Red Hat Red Hat Single Sign-On 7.6 For Rhel 8: before 0:18.0.18-1.redhat_00001.1.el8sso (fixed in 0:18.0.18-1.redhat_00001.1.el8sso)
  • Red Hat Red Hat Single Sign-On 7.6 For Rhel 9: before 0:18.0.18-1.redhat_00001.1.el9sso (fixed in 0:18.0.18-1.redhat_00001.1.el9sso)
  • Red Hat Rhel-8 Based Middleware Containers: before 7.6-54 (fixed in 7.6-54)

Published 2024-09-19. Last modified 2026-08-04.