cve.bz

CVE-2024-8698

7.7 highEPSS 2.0%Fix available

High (7.7). EPSS 2.0% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-saml-core 22.0.13, 24.0.8, 25.0.6.

On this page
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.

Severity

CVSS 3.1

7.7 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • org.keycloak:keycloak-saml-core (Maven): fixed in 22.0.13, 24.0.8, 25.0.6
  • Red Hat Red Hat build of Keycloak 22: fixed in 22.0.13-1
  • Red Hat Red Hat build of Keycloak 22: fixed in 22-18
  • Red Hat Red Hat build of Keycloak 22: fixed in 22-21
  • Red Hat Red Hat build of Keycloak 24: fixed in 24.0.8-1
  • Red Hat Red Hat build of Keycloak 24: fixed in 24-17
  • Red Hat Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8: fixed in 0:2.33.0-1.redhat_00015.1.el8eap
  • Red Hat Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8: fixed in 1:2.0.0-2.redhat_00005.1.el8eap
  • Red Hat Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8: fixed in 0:1.8.0-2.redhat_00001.1.el8eap
  • Red Hat: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-8698 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-8698?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-8698?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-8698 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat build of Keycloak 2222.0.13-1
Red Hat build of Keycloak 2222-18
Red Hat build of Keycloak 2222-21
Red Hat build of Keycloak 2424.0.8-1
Red Hat build of Keycloak 2424-17
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.33.0-1.redhat_00015.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 81:2.0.0-2.redhat_00005.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:1.8.0-2.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.2.0-2.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:1.16.1-2.redhat_00007.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:3.2.2-28.redhat_2.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.15.1-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:3.14.0-2.redhat_00006.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:4.0.5-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.0.1-1.redhat_00002.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:0.1.0-2.redhat_00010.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:1.12.284-2.redhat_00002.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:1.2.5-2.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:800.4.0-1.GA_redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.1.0-4.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:6.2.31-1.Final_redhat_00002.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:8.0.1-3.Final_redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:0.8.1-2.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:1.1.3-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:3.0.1-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:3.5.3-1.Final_redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:4.0.2-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:5.3.10-1.Final_redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.22.1-1.redhat_00002.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:6.0.3-1.Final_redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:9.37.3-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:9.6.0-1.redhat_00002.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.3.0-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.0.1-3.Final_redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:3.0.1-2.Final_redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:3.0.4-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:8.0.0-6.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.0.16-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:2.2.0-1.redhat_00001.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 80:8.0.4-2.GA_redhat_00005.1.el8eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.33.0-1.redhat_00015.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 91:2.0.0-2.redhat_00005.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:1.8.0-2.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.2.0-2.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:1.16.1-2.redhat_00007.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:3.2.2-28.redhat_2.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.15.1-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:3.14.0-2.redhat_00006.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:4.0.5-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.0.1-1.redhat_00002.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:0.1.0-2.redhat_00010.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:1.12.284-2.redhat_00002.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:1.2.5-2.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:800.4.0-1.GA_redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.1.0-4.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:6.2.31-1.Final_redhat_00002.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:8.0.1-3.Final_redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:0.8.1-2.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:1.1.3-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:3.0.1-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:3.5.3-1.Final_redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:4.0.2-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:5.3.10-1.Final_redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.22.1-1.redhat_00002.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:6.0.3-1.Final_redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:9.37.3-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:9.6.0-1.redhat_00002.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.3.0-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.0.1-3.Final_redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:3.0.1-2.Final_redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:3.0.4-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:8.0.0-6.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.0.16-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:2.2.0-1.redhat_00001.1.el9eap
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 90:8.0.4-2.GA_redhat_00005.1.el9eap
Red Hat Single Sign-On 7.6 for RHEL 70:18.0.18-1.redhat_00001.1.el7sso
Red Hat Single Sign-On 7.6 for RHEL 80:18.0.18-1.redhat_00001.1.el8sso
Red Hat Single Sign-On 7.6 for RHEL 90:18.0.18-1.redhat_00001.1.el9sso
Red Hat RHEL-8 based Middleware Containers7.6-54

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xgfv-xpx8-qhcrMavenorg.keycloak:keycloak-saml-core<22.0.1322.0.13
GHSA-xgfv-xpx8-qhcrMavenorg.keycloak:keycloak-saml-core>=23.0.0 <24.0.824.0.8
GHSA-xgfv-xpx8-qhcrMavenorg.keycloak:keycloak-saml-core>=25.0.0 <25.0.625.0.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-activemq-artemis, eap8-activemq-artemis-cli, eap8-activemq-artemis-dto and 12 more0:2.33.0-1.redhat_00015.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-aesh-extensions0:1.8.0-2.redhat_00001.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-aesh-readline0:2.2.0-2.redhat_00001.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-apache-commons-codec0:1.16.1-2.redhat_00007.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-apache-commons-collections0:3.2.2-28.redhat_2.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-apache-commons-io0:2.15.1-1.redhat_00001.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-apache-commons-lang0:3.14.0-2.redhat_00006.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-apache-cxf, eap8-apache-cxf-rt, eap8-apache-cxf-tools and 1 more0:4.0.5-1.redhat_00001.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-artemis-native, eap8-artemis-native-wildfly, eap8-activemq-artemis-native1:2.0.0-2.redhat_00005.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-artemis-wildfly-integration0:2.0.1-1.redhat_00002.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-asyncutil0:0.1.0-2.redhat_00010.1.el8eapRHSA-2024:8823
Red Hatjboss_enterprise_application_platform:8.0::el8eap8-aws-java-sdk, eap8-jmespath-java, eap8-aws-java-sdk-s3 and 2 more0:1.12.284-2.redhat_00002.1.el8eapRHSA-2024:8823
61 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

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's 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.

ProductPackageStateAdvisory
Red Hat Build of KeycloakFixed 2024-09-19RHSA-2024:6888
Red Hat Build of Keycloakkeycloak-saml-coreFixed 2024-09-19RHSA-2024:6890
Red Hat build of Keycloak 22rhbk/keycloak-operator-bundle:22.0.13-1Fixed 2024-09-19RHSA-2024:6887
Red Hat build of Keycloak 22rhbk/keycloak-rhel9:22-18Fixed 2024-09-19RHSA-2024:6887
Red Hat build of Keycloak 22rhbk/keycloak-rhel9-operator:22-21Fixed 2024-09-19RHSA-2024:6887
Red Hat build of Keycloak 24rhbk/keycloak-operator-bundle:24.0.8-1Fixed 2024-09-19RHSA-2024:6889
Red Hat build of Keycloak 24rhbk/keycloak-rhel9:24-17Fixed 2024-09-19RHSA-2024:6889
Red Hat build of Keycloak 24rhbk/keycloak-rhel9-operator:24-17Fixed 2024-09-19RHSA-2024:6889
Red Hat JBoss Enterprise Application Platform 8keycloak-saml-core-publicFixed 2024-11-04RHSA-2024:8826
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentFixed 2024-11-04RHSA-2024:8826
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-activemq-artemis-0:2.33.0-1.redhat_00015.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-activemq-artemis-native-1:2.0.0-2.redhat_00005.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-aesh-extensions-0:1.8.0-2.redhat_00001.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-aesh-readline-0:2.2.0-2.redhat_00001.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-apache-commons-codec-0:1.16.1-2.redhat_00007.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-apache-commons-collections-0:3.2.2-28.redhat_2.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-apache-commons-io-0:2.15.1-1.redhat_00001.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-apache-commons-lang-0:3.14.0-2.redhat_00006.1.el8eapFixed 2024-11-04RHSA-2024:8823
Red Hat Build of Keycloakkeycloak-saml-core-publicAffected
Red Hat Single Sign-On 7keycloak-saml-core-publicAffected
71 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-8698.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON