CVE-2024-8698 json
Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak
published 2024-09-19 2 y ago modified 2026-09-10 1 mo ago also GHSA-xgfv-xpx8-qhcr , EUVD-2024-3168
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known, plus a Nuclei check
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.
Patch / fix
- maven org.keycloak:keycloak-saml-core 22.0.13, 24.0.8, 25.0.6
- Red Hat Red Hat build of Keycloak 22 22-18, 22-21, 22.0.13-1
- Red Hat Red Hat build of Keycloak 24 24-17, 24.0.8-1
- Red Hat 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.2.5-2.redhat_00001.1.el8eap, 0:1.8.0-2.redhat_00001.1.el8eap, 0:1.12.284-2.redhat_00002.1.el8eap, 0:1.16.1-2.redhat_00007.1.el8eap, 0:2.0.1-1.redhat_00002.1.el8eap, 0:2.1.0-4.redhat_00001.1.el8eap, 0:2.2.0-2.redhat_00001.1.el8eap, 0:2.15.1-1.redhat_00001.1.el8eap, 0:2.33.0-1.redhat_00015.1.el8eap, 0:3.0.1-1.redhat_00001.1.el8eap, 0:3.2.2-28.redhat_2.1.el8eap, 0:3.14.0-2.redhat_00006.1.el8eap, 0:4.0.5-1.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:800.4.0-1.GA_redhat_00001.1.el8eap, 1:2.0.0-2.redhat_00005.1.el8eap
- Red Hat 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.2.5-2.redhat_00001.1.el9eap, 0:1.8.0-2.redhat_00001.1.el9eap, 0:1.12.284-2.redhat_00002.1.el9eap, 0:1.16.1-2.redhat_00007.1.el9eap, 0:2.0.1-1.redhat_00002.1.el9eap, 0:2.1.0-4.redhat_00001.1.el9eap, 0:2.2.0-2.redhat_00001.1.el9eap, 0:2.15.1-1.redhat_00001.1.el9eap, 0:2.33.0-1.redhat_00015.1.el9eap, 0:3.0.1-1.redhat_00001.1.el9eap, 0:3.2.2-28.redhat_2.1.el9eap, 0:3.14.0-2.redhat_00006.1.el9eap, 0:4.0.5-1.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:800.4.0-1.GA_redhat_00001.1.el9eap, 1:2.0.0-2.redhat_00005.1.el9eap
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 7 0:18.0.18-1.redhat_00001.1.el7sso
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 8 0:18.0.18-1.redhat_00001.1.el8sso
- Red Hat 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
- eap8-hppc jboss enterprise application platform 8.0 0.8.1-2.redhat_00001.1.el8eap
- eap8-log4j jboss enterprise application platform 8.0 2.22.1-1.redhat_00002.1.el8eap
- eap8-slf4j jboss enterprise application platform 8.0 2.0.16-1.redhat_00001.1.el8eap
- eap8-jctools jboss enterprise application platform 8.0 4.0.2-1.redhat_00001.1.el8eap
- eap8-jgroups jboss enterprise application platform 8.0 5.3.10-1.Final_redhat_00001.1.el8eap
- eap8-wildfly jboss enterprise application platform 8.0 8.0.4-2.GA_redhat_00005.1.el8eap
- eap8-narayana jboss enterprise application platform 8.0 6.0.3-1.Final_redhat_00001.1.el8eap
- eap8-asyncutil jboss enterprise application platform 8.0 0.1.0-2.redhat_00010.1.el8eap
red hat advisories RHSA-2024:8823RHSA-2024:8824RHSA-2024:6880RHSA-2024:6879RHSA-2024:6878
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-8698 updated cvss 7.7
keycloak-saml-core: Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak
-
Red Hat Build of Keycloak keycloak-saml-core-public Red Hat Single Sign-On 7 keycloak-saml-core-publicaffected: workaround, no fix available
-
Red Hat Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8 7.6-54fixed: vendor fix RHSA-2024:6882
-
Red Hat Build of Keycloakfixed: vendor fix RHSA-2024:6890
-
Red Hat build of Keycloak 22 rhbk/keycloak-rhel9 22-18, rhbk/keycloak-rhel9-operator 22-21, rhbk/keycloak-operator-bundle 22.0.13-1fixed: vendor fix RHSA-2024:6887
-
Red Hat build of Keycloak 24 rhbk/keycloak-rhel9 24-17, rhbk/keycloak-rhel9-operator 24-17, rhbk/keycloak-operator-bundle 24.0.8-1fixed: vendor fix RHSA-2024:6889
-
Red Hat JBoss EAP 8.0 for RHEL 8 eap8-hppc 0.8.1-2.redhat_00001.1.el8eap, eap8-log4j 2.22.1-1.redhat_00002.1.el8eap, eap8-slf4j 2.0.16-1.redhat_00001.1.el8eap, eap8-jctools 4.0.2-1.redhat_00001.1.el8eap, eap8-asyncutil 0.1.0-2.redhat_00010.1.el8eap, eap8-saaj-impl 3.0.4-1.redhat_00001.1.el8eap, +74 morefixed: vendor fix RHSA-2024:8823
-
Red Hat JBoss EAP 8.0 for RHEL 9 eap8-hppc 0.8.1-2.redhat_00001.1.el9eap, eap8-log4j 2.22.1-1.redhat_00002.1.el9eap, eap8-slf4j 2.0.16-1.redhat_00001.1.el9eap, eap8-jctools 4.0.2-1.redhat_00001.1.el9eap, eap8-asyncutil 0.1.0-2.redhat_00010.1.el9eap, eap8-saaj-impl 3.0.4-1.redhat_00001.1.el9eap, +74 morefixed: vendor fix RHSA-2024:8824
-
Red Hat JBoss Enterprise Application Platform 8fixed: vendor fix RHSA-2024:8826
show 4 moreshow fewer
-
Red Hat Single Sign-On 7fixed: vendor fix RHSA-2024:6886
-
Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak 18.0.18-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server 18.0.18-1.redhat_00001.1.el7ssofixed: vendor fix RHSA-2024:6878
-
Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak 18.0.18-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server 18.0.18-1.redhat_00001.1.el8ssofixed: vendor fix RHSA-2024:6879
-
Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak 18.0.18-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server 18.0.18-1.redhat_00001.1.el9ssofixed: vendor fix RHSA-2024:6880
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
2.03% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Keycloak - SAML Core Package Signature Validation Flaw nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
| GitHub | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-saml-core | <22.0.13 >=23.0.0, <24.0.8 >=25.0.0, <25.0.6 |
22.0.13 24.0.8 25.0.6 |
Affected products
- Red Hat Red Hat Build of Keycloak
- Red Hat Red Hat build of Keycloak 22
- Red Hat Red Hat build of Keycloak 24
- Red Hat Red Hat JBoss Enterprise Application Platform 8
- Red Hat Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- Red Hat Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- Red Hat Red Hat Single Sign-On 7
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 7
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 8
- Red Hat Red Hat Single Sign-On 7.6 for RHEL 9
- Red Hat RHEL-8 based Middleware Containers
Classification
- Weakness
-
- CWE-347 Improper Verification of Cryptographic Signature
References
-
access.redhat.com
/errata/RHSA-2024:6878
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6879
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6880
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6882
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6886
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6887
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6888
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6889
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:6890
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:8823
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:8824
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2024:8826
vendor-advisory, web
-
access.redhat.com
/security/cve/CVE-2024-8698
vdb-entry, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2311641
issue-tracking, web
-
github.com
/keycloak/keycloak/security/advisories/GHSA-xgfv-xpx8-qhcr
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-8698
advisory
-
github.com
/keycloak/keycloak/releases/tag/25.0.6
web
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2024-8698
- GitHub Advisory GHSA-xgfv-xpx8-qhcr
- NVD CVE-2024-8698
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.