CVE-2024-8698
HIGH 7.7CVSS 3.1Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak
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.
- Published
- 19 Sep 2024
- Last modified
- 10 Sep 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-347
- Also known as
- GHSA-xgfv-xpx8-qhcr
- Sources
- NVDJSONOSV GHSA-xgfv-xpx8-qhcrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.keycloak:keycloak-saml-core | < 22.0.13 | 22.0.13 |
| OSV | Maven | org.keycloak:keycloak-saml-core | >= 23.0.0, < 24.0.8 | 24.0.8 |
| OSV | Maven | org.keycloak:keycloak-saml-core | >= 25.0.0, < 25.0.6 | 25.0.6 |
References
- https://access.redhat.com/errata/RHSA-2024:6878 · WEB
- https://access.redhat.com/errata/RHSA-2024:6879 · WEB
- https://access.redhat.com/errata/RHSA-2024:6880 · WEB
- https://access.redhat.com/errata/RHSA-2024:6882 · WEB
- https://access.redhat.com/errata/RHSA-2024:6886 · WEB
- https://access.redhat.com/errata/RHSA-2024:6887 · WEB
- https://access.redhat.com/errata/RHSA-2024:6888 · WEB
- https://access.redhat.com/errata/RHSA-2024:6889 · WEB
- https://access.redhat.com/errata/RHSA-2024:6890 · WEB
- https://access.redhat.com/errata/RHSA-2024:8823 · WEB
- https://access.redhat.com/errata/RHSA-2024:8824 · WEB
- https://access.redhat.com/errata/RHSA-2024:8826 · WEB
- https://access.redhat.com/security/cve/CVE-2024-8698 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2311641 · WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-xgfv-xpx8-qhcr · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-8698 · ADVISORY
- https://github.com/keycloak/keycloak/releases/tag/25.0.6 · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 19 Sep 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 14 Oct 2024)