CVE-2024-8698

published 19 Sep 2024 · updated 4 Aug 2026

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

8.7HighCVSS 7.7EPSS 2%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 25.0.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatBuild of Keycloak
Red HatJBoss
Red HatRHEL-8 based Middleware Containers
Red HatSingle Sign-On
<25.0.525.0.5

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in JBoss, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-8698 severity on Zeptric[![CVE-2024-8698](https://zeptric.io/badge/cve/CVE-2024-8698.svg)](https://zeptric.io/cve/CVE-2024-8698)