CVE-2024-8698: Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak
Vulnerability summary
CVE-2024-8698 is a high (CVSS 7.7) vulnerability in keycloak. EPSS estimates a 2.03% chance of exploitation in the next 30 days, higher than 81% of scored vulnerabilities.
Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 1Timeline
- 19-09-2024PublishedVulnerability first disclosed.
- 04-08-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · WolfiEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
- OSV · ChainguardEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
- OSV · MavenEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
- NVDNIST7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
EPSS trend
Probability
2.03%
Chance of exploitation in the next 30 days
Percentile
81%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.03% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- keycloak< 25.0.6-r0
Org.keycloak1 product
- keycloak-saml-core< 22.0.13 | ≥ 23.0.0, < 24.0.8 | ≥ 25.0.0, < 25.0.6
Wolfi1 product
- keycloak< 25.0.6-r0
3 vendors · 3 products
References
21 linksShow all 21 references
- github.com/keycloak/keycloakPACKAGE