{"cve":"CVE-2024-8698","nvd":{"published":"2024-09-19T16:15:06.177","modified":"2026-08-04T09:16:34.540","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","score":7.7},"cwes":["CWE-347"],"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"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:54:38.012257375+00:00"},"epss":{"cve":"CVE-2024-8698","score":0.0203,"percentile":0.81037,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xgfv-xpx8-qhcr","url":"https://osv.dev/vulnerability/GHSA-xgfv-xpx8-qhcr","summary":"Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak","modified":"2026-09-10T03:50:20.277719398Z","packages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-saml-core","purl":"pkg:maven/org.keycloak/keycloak-saml-core","ranges":["<22.0.13"],"fixed":["22.0.13"]},{"ecosystem":"Maven","name":"org.keycloak:keycloak-saml-core","purl":"pkg:maven/org.keycloak/keycloak-saml-core","ranges":[">=23.0.0 <24.0.8"],"fixed":["24.0.8"]},{"ecosystem":"Maven","name":"org.keycloak:keycloak-saml-core","purl":"pkg:maven/org.keycloak/keycloak-saml-core","ranges":[">=25.0.0 <25.0.6"],"fixed":["25.0.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}