---
id: CVE-2024-8698
title: >-
  A flaw exists in the SAML signature validation method within the Keycloak
  XMLSignatureUtil class
summary: >-
  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 o…
severity: high
cvss: 7.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L'
cwe:
  - CWE-347
published: '2024-09-19'
updated: '2026-08-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-8698'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:6878'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6879'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6880'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6882'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6886'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6887'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6888'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6889'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:6890'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:8823'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:8824'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:8826'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2024-8698'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2311641'
    label: secalert@redhat.com
tags:
  - nvd
  - exploit-available
epss: 0.0203
epssPercentile: 0.80182
ingestedAt: '2026-08-04T08:38:40.893Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/huydoppaz/CVE-2024-8698-POC'
  nuclei:
    - CVE-2024-8698
  checkedAt: '2026-09-23T07:13:30.897Z'
exploitAvailable: true
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
