High severity7.7GHSA 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
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 |
Affected products
10- Range: >= 25.0.0, <= 25.0.5
- osv-coords9 versionspkg:apk/chainguard/keycloakpkg:apk/chainguard/keycloak-bitnami-compatpkg:apk/chainguard/keycloak-compatpkg:apk/chainguard/keycloak-iamguarded-compatpkg:apk/wolfi/keycloakpkg:apk/wolfi/keycloak-bitnami-compatpkg:apk/wolfi/keycloak-compatpkg:apk/wolfi/keycloak-iamguarded-compatpkg:maven/org.keycloak/keycloak-saml-core
< 25.0.6-r0+ 8 more
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 25.0.6-r0
- (no CPE)range: < 22.0.13
Patches
Vulnerability mechanics
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.