CVE-2024-8698

HIGH NUCLEI

Keycloak SAML Core < 22.0.13 - Improper Verification of Cryptographic Signature in XMLSignatureUtil

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2024-8698. PoCs published by huydoppaz. A Nuclei detection template is also available.

AI-analyzed exploit summary This PoC demonstrates a SAML signature wrapping attack (CVE-2024-8698) by manipulating the XML structure of a SAML response to bypass signature validation. It clones the assertion, modifies the NameID to '[email protected]', and repositions the signature element to exploit improper validation logic.

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.

Exploits (1)

nomisec WORKING POC 6 stars
by huydoppaz · poc
https://github.com/huydoppaz/CVE-2024-8698-POC

This PoC demonstrates a SAML signature wrapping attack (CVE-2024-8698) by manipulating the XML structure of a SAML response to bypass signature validation. It clones the assertion, modifies the NameID to '[email protected]', and repositions the signature element to exploit improper validation logic.

Classification
Working Poc 90%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: Keycloak (version not specified)
No auth needed
Prerequisites: Valid SAML response template · Target system using vulnerable SAML validation
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Keycloak - SAML Core Package Signature Validation Flaw
HIGHVERIFIEDby iamnoooob,rootxharsh,pdresearch
Shodan: http.favicon.hash:"-1105083093"
FOFA: icon_hash=-1105083093

References (14)

Core 14
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6878
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6879
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6880
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6882
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6886
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6887
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6888
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6889
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:6890
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:8823
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:8824
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2024:8826
Vendor Advisory vdb-entry x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2024-8698
Issue Tracking issue-tracking x_refsource_redhat
https://bugzilla.redhat.com/show_bug.cgi?id=2311641

Scores

CVSS v3 7.7
EPSS 0.8222
EPSS Percentile 99.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-347
Status published
Products (50)
org.keycloak/keycloak-saml-core 0 - 22.0.13Maven
Red Hat/Red Hat Build of Keycloak
Red Hat/Red Hat build of Keycloak 22 22-18
Red Hat/Red Hat build of Keycloak 22 22-21
Red Hat/Red Hat build of Keycloak 22 22.0.13-1
Red Hat/Red Hat build of Keycloak 24 24-17
Red Hat/Red Hat build of Keycloak 24 24.0.8-1
Red Hat/Red Hat JBoss Enterprise Application Platform 8
Red Hat/Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 0:0.1.0-2.redhat_00010.1.el8eap
Red Hat/Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 0:0.8.1-2.redhat_00001.1.el8eap
... and 40 more
Published Sep 19, 2024
Tracked Since Feb 18, 2026