Skip to main content
Public proof of conceptFix available

CVE-2024-8698

A public proof of concept exists; no exploitation attested.

  • Published2024-09-19
  • Fixed in25.0.6 · 24.0.8 · 22.0.13
  • WeaknessCWE-347

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-09-1916:15CVE publishedNVD

Versions per branch

OSV
keycloak-saml-core
BranchAffectedFixed in
25.0≥ 25.0.0, < 25.0.625.0.6
24.0≥ 23.0.0, < 24.0.824.0.8
22.0< 22.0.1322.0.13

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA92 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

86 more products in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-08-04

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • eap8-activemq-artemisRed Hat:jboss_enterprise_application_platform:8.0::el9all versions · fixed in 0:2.33.0-1.redhat_00015.1.el9eapand 14 other packages
  • eap8-activemq-artemisRed Hat:jboss_enterprise_application_platform:8.0::el8all versions · fixed in 0:2.33.0-1.redhat_00015.1.el8eapand 14 other packages
  • eap8-aesh-extensionsRed Hat:jboss_enterprise_application_platform:8.0::el9all versions · fixed in 0:1.8.0-2.redhat_00001.1.el9eap
  • eap8-aesh-extensionsRed Hat:jboss_enterprise_application_platform:8.0::el8all versions · fixed in 0:1.8.0-2.redhat_00001.1.el8eap
  • eap8-aesh-readlineRed Hat:jboss_enterprise_application_platform:8.0::el9all versions · fixed in 0:2.2.0-2.redhat_00001.1.el9eap
  • eap8-aesh-readlineRed Hat:jboss_enterprise_application_platform:8.0::el8all versions · fixed in 0:2.2.0-2.redhat_00001.1.el8eap
  • eap8-apache-commons-codecRed Hat:jboss_enterprise_application_platform:8.0::el9all versions · fixed in 0:1.16.1-2.redhat_00007.1.el9eap
  • eap8-apache-commons-codecRed Hat:jboss_enterprise_application_platform:8.0::el8all versions · fixed in 0:1.16.1-2.redhat_00007.1.el8eap

65 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-8698 Red Hat Product Security263 products fixed · 2 known affected

    keycloak-saml-core: Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak

    keycloak-saml-core-public as a component of Red Hat Build of Keycloak · keycloak-saml-core-public as a component of Red Hat Single Sign-On 7

  • RHSA-2024:8826 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 8.0.4 Security update

  • RHSA-2024:8823 Red Hat Product Security117 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 8.0.4 Security update

  • RHSA-2024:8824 Red Hat Product Security117 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 8.0.4 Security update

  • RHSA-2024:6889 Red Hat Product Security7 products fixed

    Red Hat Security Advisory: Red Hat build of Keycloak 24.0.8 Images Update

  • RHSA-2024:6890 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat build of Keycloak 24.0.8 Update

7 more advisories

Full record on NVD

Fix

  1. Update keycloak-saml-core to 25.0.6 · 24.0.8 · 22.0.13
  2. Vendor fix Red Hat Product Security RHSA-2024:8826 · 1 productBefore applying the update, make sure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://acce…
  3. Vendor fix Red Hat Product Security RHSA-2024:6889 · 7 productsBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on.
  4. Vendor fix Red Hat Product Security RHSA-2024:6886 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).
  5. Vendor fix Red Hat Product Security RHSA-2024:6882 · 3 productsTo update to the latest Red Hat Single Sign-On 7.6.11 for OpenShift image, Follow these steps to pull in the content: 1. On your main hosts, ensure you are logged into the CLI as a cluster administrator or user with project administrator access to the global "openshift" project. For example: $ oc…
  6. Vendor fix Red Hat Product Security RHSA-2024:6879 · 3 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  7. Workaround from the vendor Red Hat Product Security RHSA-2024:8826 · 1 productMitigation 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.

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
Published
2024-09-19
Last Modified
2026-08-04
NVD status
Deferred
GitHub Advisory
GHSA-xgfv-xpx8-qhcr

Frequently asked questions

What is CVE-2024-8698?

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.

Is CVE-2024-8698 actively exploited?

Active exploitation of CVE-2024-8698 has not been confirmed. Its EPSS score was 2.0% on 2026-11-16, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-8698?

CVE-2024-8698 has a CVSS v3 base score of 7.7 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L.

Running keycloak-saml-core? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record