Skip to content
VulniPulse
Advisory severityHigh7.7Red Hat Linux

High [CVE-2024-8698] improper verification of saml responses leading to privilege escalation in keycloak

This high-severity Red Hat Linux advisory covers CVE-2024-8698 affecting Red Hat build of Keycloak 22, Red Hat build of Keycloak 24, Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2024-8698 Source published Source updated

VulniPulse record published

Affected products & platforms
Red Hat LinuxUnclassified
Open source advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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. This vulnerability is of high severity due to its potential to facilitate privilege escalation and user impersonation in systems using SAML for authentication.

The core issue stems from improper validation logic in Keycloak's signature validation method, which relies on the position of signatures rather than explicitly checking the referenced elements. By manipulating the XML structure, an attacker can bypass signature validation and inject an unsigned assertion while retaining a valid signed one.

This allows unauthorized access to high-privileged accounts, leading to significant security risks in SAML-based identity providers and service providers. Red Hat severity: Important — CVSS 7.7 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L).

Weakness: CWE-347.

Affected versions

No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.

Official advisory · high-confidence parse· fetched 16 days ago·verify at source

Fixed versions
  • keycloak-saml-core
  • rhbk/keycloak-operator-bundle:22.0.13-1
  • rhbk/keycloak-rhel9:22-18
  • rhbk/keycloak-rhel9-operator:22-21
  • rhbk/keycloak-operator-bundle:24.0.8-1
  • rhbk/keycloak-rhel9:24-17
  • rhbk/keycloak-rhel9-operator:24-17
  • keycloak-saml-core-public
  • org.keycloak-keycloak-parent
  • eap8-activemq-artemis-0:2.33.0-1.redhat_00015.1.el8eap
  • eap8-activemq-artemis-native-1:2.0.0-2.redhat_00005.1.el8eap
  • eap8-aesh-extensions-0:1.8.0-2.redhat_00001.1.el8eap
  • eap8-aesh-readline-0:2.2.0-2.redhat_00001.1.el8eap
  • eap8-apache-commons-codec-0:1.16.1-2.redhat_00007.1.el8eap
  • eap8-apache-commons-collections-0:3.2.2-28.redhat_2.1.el8eap
  • eap8-apache-commons-io-0:2.15.1-1.redhat_00001.1.el8eap
  • eap8-apache-commons-lang-0:3.14.0-2.redhat_00006.1.el8eap
  • eap8-apache-cxf-0:4.0.5-1.redhat_00001.1.el8eap
  • eap8-artemis-native-1:2.0.0-2.redhat_00005.1.el8eap
  • eap8-artemis-wildfly-integration-0:2.0.1-1.redhat_00002.1.el8eap
  • eap8-asyncutil-0:0.1.0-2.redhat_00010.1.el8eap
  • eap8-aws-java-sdk-0:1.12.284-2.redhat_00002.1.el8eap
  • eap8-cryptacular-0:1.2.5-2.redhat_00001.1.el8eap
  • eap8-eap-product-conf-parent-0:800.4.0-1.GA_redhat_00001.1.el8eap
  • eap8-fastinfoset-0:2.1.0-4.redhat_00001.1.el8eap
  • eap8-hibernate-0:6.2.31-1.Final_redhat_00002.1.el8eap
  • eap8-hibernate-validator-0:8.0.1-3.Final_redhat_00001.1.el8eap
  • eap8-hppc-0:0.8.1-2.redhat_00001.1.el8eap
  • eap8-insights-java-client-0:1.1.3-1.redhat_00001.1.el8eap
  • eap8-jakarta-servlet-jsp-jstl-api-0:3.0.1-1.redhat_00001.1.el8eap
  • eap8-jboss-cert-helper-0:1.1.3-1.redhat_00001.1.el8eap
  • eap8-jboss-logging-0:3.5.3-1.Final_redhat_00001.1.el8eap
  • eap8-jctools-0:4.0.2-1.redhat_00001.1.el8eap
  • eap8-jgroups-0:5.3.10-1.Final_redhat_00001.1.el8eap
  • eap8-log4j-0:2.22.1-1.redhat_00002.1.el8eap
  • eap8-narayana-0:6.0.3-1.Final_redhat_00001.1.el8eap
  • eap8-nimbus-jose-jwt-0:9.37.3-1.redhat_00001.1.el8eap
  • eap8-objectweb-asm-0:9.6.0-1.redhat_00002.1.el8eap
  • eap8-pem-keystore-0:2.3.0-1.redhat_00001.1.el8eap
  • eap8-resteasy-extensions-0:2.0.1-3.Final_redhat_00001.1.el8eap
  • RHSA-2024:6888
  • RHSA-2024:6890
  • RHSA-2024:6887
  • RHSA-2024:6889
  • RHSA-2024:8826
  • RHSA-2024:8823
  • RHSA-2024:8824
  • RHSA-2024:6886
  • RHSA-2024:6878
  • RHSA-2024:6879

Official advisory · high-confidence parse· fetched 16 days ago·verify at source

Mitigation checklist

Recommended fix / 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.

Official advisory · high-confidence parse· fetched 16 days ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.