NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
HIGH severity

CVE-2024-8698 — keycloak-saml-core

HIGH

CVE-2024-8698 is a high-severity (CVSS 7.7) CWE-347 vulnerability in org.keycloak:keycloak-saml-core. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.keycloak:keycloak-saml-core — see the affected versions and patch details below.

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

Also known asGHSA-xgfv-xpx8-qhcr
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
2 known
Exploitation data as of Nov 2, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2024-8698.

EPSS Exploitation Probability

via FIRST.org ↗
2.0%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs81th percentile — riskier than 81% of all scored CVEsHighest risk
0.00%33.3%66.7%100.0%81.3%2.0%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

3 pkgs affected
☕org.keycloak:keycloak-saml-core☕org.keycloak:keycloak-saml-core☕org.keycloak:keycloak-saml-core

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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 Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.keycloak:keycloak-saml-coreall versions22.0.13org.keycloak:keycloak-saml-core:22.0.13
☕Mavenorg.keycloak:keycloak-saml-core≥ 23.0.0&&< 24.0.824.0.8org.keycloak:keycloak-saml-core:24.0.8
☕Mavenorg.keycloak:keycloak-saml-core≥ 25.0.0&&< 25.0.625.0.6org.keycloak:keycloak-saml-core:25.0.6
Exploits & PoCs
2

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.keycloak:keycloak-saml-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.keycloak:keycloak-saml-core to 22.0.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-8698 is resolved across your whole dependency graph.

  3. Workarounds

    Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.

How to detect CVE-2024-8698

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2024-8698 -u https://target
Template
Keycloak - SAML Core Package Signature Validation Flaw
Severity
high
Impact
Attackers can create crafted SAML responses that bypass signature validation, potentially leading to privilege escalation, impersonation attacks, and unauthorized access to protected resources in Keycloak.
Remediation
Apply Red Hat security updates (RHSA-2024:6878, RHSA-2024:6879, RHSA-2024:6880, RHSA-2024:6882) to address the SAML signature validation flaw in Keycloak XMLSignatureUtil class.

Template by ProjectDiscovery nuclei-templates (iamnoooob, rootxharsh, pdresearch), MIT licensed. View the full template. Scan only systems you are authorised to test.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

This vulnerability is of high severity due to its potential to facilitate privilege escalation and user impersonation in systems using SAML for authentication. The core issue stems from improper validation logic in Keycloak's signature validation method, which relies on the position of signatures rather than…

Workaround published by Red Hat
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Source: Red Hat security advisory for CVE-2024-8698 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Build of Keycloaksee advisoryRHSA-2024:6888
Red Hat Build of Keycloakkeycloak-saml-coreRHSA-2024:6890
Red Hat build of Keycloak 22rhbk/keycloak-operator-bundle:22.0.13-1RHSA-2024:6887
Red Hat build of Keycloak 24rhbk/keycloak-operator-bundle:24.0.8-1RHSA-2024:6889
Red Hat JBoss Enterprise Application Platform 8keycloak-saml-core-publicRHSA-2024:8826
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8eap8-activemq-artemis-0:2.33.0-1.redhat_00015.1.el8eapRHSA-2024:8823
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9eap8-activemq-artemis-0:2.33.0-1.redhat_00015.1.el9eapRHSA-2024:8824
Red Hat Single Sign-On 7keycloak-saml-coreRHSA-2024:6886

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2024-8698 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2024-8698: keycloak-saml PrivEsc — Fixed in 22.0.13