{"id":"CVE-2024-8698","published":"2024-09-19T15:48:18Z","modified":"2026-08-04T08:05:59Z","title":"Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak","vendor":"Red Hat","product":"Red Hat Build of Keycloak","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0203,"percentile":0.81519,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:6878","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6879","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6880","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6882","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6886","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6887","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6888","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6889","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6890","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8823","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8824","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8826","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-8698","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2311641","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":26.7,"factors":[{"name":"EPSS percentile","points":16.3},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.39}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-10-10","earliestUrl":"https://github.com/huydoppaz/CVE-2024-8698-POC","repos":[{"name":"huydoppaz/CVE-2024-8698-POC","url":"https://github.com/huydoppaz/CVE-2024-8698-POC","stars":6,"created":"2024-10-10"}]},"nuclei":[{"id":"CVE-2024-8698","name":"Keycloak - SAML Core Package Signature Validation Flaw","severity":"high","path":"http/cves/2024/CVE-2024-8698.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8698.yaml"}],"first":{"date":"2024-10-10","source":"PoC-in-GitHub","url":"https://github.com/huydoppaz/CVE-2024-8698-POC"},"provenance":"source"},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":["< 25.0.5"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8","versions":["all versions"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-19T17:28:59.153864Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-saml-core","vulnerableRanges":["<22.0.13",">=23.0.0, <24.0.8",">=25.0.0, <25.0.6"],"patched":["22.0.13","24.0.8","25.0.6"],"from":["GHSA-xgfv-xpx8-qhcr"],"provenance":"source"}],"summary":{"text":"A flaw in the SAML signature validation method of the XMLSignatureUtil class in Red Hat Build of Keycloak causes it to decide whether a signature covers the full document or only specific assertions based on the signature's position in the XML, rather than the Reference element that identifies the signed content. An attacker with network access and low privileges can submit a crafted SAML response that bypasses signature validation, potentially enabling privilege escalation or impersonation, with the attack requiring a high-complexity condition and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:59:18Z"},"euvd":{"id":"EUVD-2024-3168","exploited":false,"provenance":"source"}}