CVE-2024-8698

Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak

HIGH
7.7
CVSS Score
Published: September 19, 2024 at 03:48 PM UTC
Updated: August 4, 2026 at 09:16 AM UTC
3 products affected across 2 vendorsKeycloakSingle Sign onBuild of Keycloak

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.7
Exploit prediction
EPSS 2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions
Vendor states this is fixed in 22 (unaffected)
Vendor states this is fixed in 22-18 (unaffected)
Vendor states this is fixed in 22-21 (unaffected)
Vendor states this is fixed in 22.0.13-1 (unaffected)
Vendor states this is fixed in 24-17 (unaffected)
Vendor states this is fixed in 24.0.8-1 (unaffected)
Vendor states this is fixed in 0:18.0.18-1.redhat_00001.1.el7sso (unaffected)
Vendor states this is fixed in 0:18.0.18-1.redhat_00001.1.el8sso (unaffected)
Vendor states this is fixed in 0:18.0.18-1.redhat_00001.1.el9sso (unaffected)
Vendor states this is fixed in 7.6 (unaffected)

References (14)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.7HIGHredhat
Attack Vector
NETWORK
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-347

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card