What’s Vulnerable › Vulnerabilities
CVE-2024-8698: Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak
- Severity: high (CVSS 7.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-09-19 · updated 2026-08-04
- Weakness: CWE-347
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.
Affected products
- Red Hat build of Keycloak 26.4: all versions — fixed in 24-17, 24.0.8-1
- Red Hat build of Keycloak 22: all versions — fixed in 22-18, 22-21, 22.0.13-1
- Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8: all versions — fixed in 0:0.1.0-2.redhat_00010.1.el8eap, 0:0.8.1-2.redhat_00001.1.el8eap, 0:1.1.3-1.redhat_00001.1.el8eap, 0:1.12.284-2.redhat_00002.1.el8eap, 0:1.16.1-2.redhat_00007.1.el8eap, 0:1.2.5-2.redhat_00001.1.el8eap
- Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9: all versions — fixed in 0:0.1.0-2.redhat_00010.1.el9eap, 0:0.8.1-2.redhat_00001.1.el9eap, 0:1.1.3-1.redhat_00001.1.el9eap, 0:1.12.284-2.redhat_00002.1.el9eap, 0:1.16.1-2.redhat_00007.1.el9eap, 0:1.2.5-2.redhat_00001.1.el9eap
- Red Hat Single Sign-On 7: all versions
- Red Hat Single Sign-On 7.6 for RHEL 7: all versions — fixed in 0:18.0.18-1.redhat_00001.1.el7sso
- Red Hat Single Sign-On 7.6 for RHEL 8: all versions — fixed in 0:18.0.18-1.redhat_00001.1.el8sso
- Red Hat Single Sign-On 7.6 for RHEL 9: all versions — fixed in 0:18.0.18-1.redhat_00001.1.el9sso
- Red Hat RHEL-8 based Middleware Containers: all versions — fixed in 7.6-54
How to fix
Upgrade to a fixed version: Red Hat build of Keycloak 26.4 24-17, 24.0.8-1; Red Hat build of Keycloak 22 22-18, 22-21, 22.0.13-1; Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 0:0.1.0-2.redhat_00010.1.el8eap, 0:0.8.1-2.redhat_00001.1.el8eap, 0:1.1.3-1.redhat_00001.1.el8eap, 0:1.12.284-2.redhat_00002.1.el8eap; Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 0:0.1.0-2.redhat_00010.1.el9eap, 0:0.8.1-2.redhat_00001.1.el9eap, 0:1.1.3-1.redhat_00001.1.el9eap, 0:1.12.284-2.redhat_00002.1.el9eap; Red Hat Single Sign-On 7.6 for RHEL 7 0:18.0.18-1.redhat_00001.1.el7sso; Red Hat Single Sign-On 7.6 for RHEL 8 0:18.0.18-1.redhat_00001.1.el8sso; Red Hat Single Sign-On 7.6 for RHEL 9 0:18.0.18-1.redhat_00001.1.el9sso; Red Hat RHEL-8 based Middleware Containers 7.6-54. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2024:6878
- https://access.redhat.com/errata/RHSA-2024:6879
- https://access.redhat.com/errata/RHSA-2024:6880
- https://access.redhat.com/errata/RHSA-2024:6882
- https://access.redhat.com/errata/RHSA-2024:6886
- https://access.redhat.com/errata/RHSA-2024:6887
- https://access.redhat.com/errata/RHSA-2024:6888
- https://access.redhat.com/errata/RHSA-2024:6889
- https://access.redhat.com/errata/RHSA-2024:6890
- https://access.redhat.com/errata/RHSA-2024:8823
- https://access.redhat.com/errata/RHSA-2024:8824
- https://access.redhat.com/errata/RHSA-2024:8826
Get alerted when CVE-2024-8698 or the next vulnerability affects your stack