PT-2024-6949 · Red Hat+1 · Keycloak+1

Tanner Emek

·

Published

2024-09-11

·

Updated

2025-11-01

·

CVE-2024-8698

CVSS v3.1

7.7

High

VectorAV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
Name of the Vulnerable Software and Affected Versions Keycloak versions prior to 24.0.0
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. Over 760K services are found to be potentially affected.
Recommendations For versions prior to 24.0.0, upgrade to 24.0.0 or later to secure your data. As a temporary workaround, consider restricting access to the SAML authentication module until a patch is available. Avoid using the vulnerable SAML signature validation process in the Keycloak XMLSignatureUtil class until the issue is resolved.

Exploit

Fix

Improper Verification of Cryptographic Signature

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2025-10780
ALT-PU-2025-12309
ALT-PU-2025-12843
ALT-PU-2025-13422
ALT-PU-2025-2871
ALT-PU-2025-3092
ALT-PU-2025-3710
ALT-PU-2025-5790
ALT-PU-2025-6486
BDU:2024-08198
CVE-2024-8698
GHSA-4XX7-2CX3-X473
GHSA-XGFV-XPX8-QHCR
RHSA-2024:6878
RHSA-2024:6879
RHSA-2024:6880
RHSA-2024:8823
RHSA-2024:8824

Affected Products

Alt Linux
Keycloak