High severity7.7NVD Advisory· Published Sep 19, 2024· Updated Apr 15, 2026
CVE-2024-8698
CVE-2024-8698
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.keycloak:keycloak-saml-coreMaven | < 22.0.13 | 22.0.13 |
org.keycloak:keycloak-saml-coreMaven | >= 23.0.0, < 24.0.8 | 24.0.8 |
org.keycloak:keycloak-saml-coreMaven | >= 25.0.0, < 25.0.6 | 25.0.6 |
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
18- github.com/advisories/GHSA-xgfv-xpx8-qhcrghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-8698ghsaADVISORY
- access.redhat.com/errata/RHSA-2024:6878nvdWEB
- access.redhat.com/errata/RHSA-2024:6879nvdWEB
- access.redhat.com/errata/RHSA-2024:6880nvdWEB
- access.redhat.com/errata/RHSA-2024:6882nvdWEB
- access.redhat.com/errata/RHSA-2024:6886nvdWEB
- access.redhat.com/errata/RHSA-2024:6887nvdWEB
- access.redhat.com/errata/RHSA-2024:6888nvdWEB
- access.redhat.com/errata/RHSA-2024:6889nvdWEB
- access.redhat.com/errata/RHSA-2024:6890nvdWEB
- access.redhat.com/errata/RHSA-2024:8823nvdWEB
- access.redhat.com/errata/RHSA-2024:8824nvdWEB
- access.redhat.com/errata/RHSA-2024:8826nvdWEB
- access.redhat.com/security/cve/CVE-2024-8698nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/keycloak/keycloak/releases/tag/25.0.6ghsaWEB
- github.com/keycloak/keycloak/security/advisories/GHSA-xgfv-xpx8-qhcrghsaWEB
News mentions
0No linked articles in our index yet.