CVE-2024-8698

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

HIGH 7.7

At a glance

Source
NVD
EPSS
EPSS 2.03 % · percentile 81 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-347 — Improper Verification of Cryptographic Signature

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.7CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:Lredhat
CVSS 3.1HIGH 7.7CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:LNVD · secalert@redhat.com (Secondary)

Advisories

European references

Affected products

ProductVersions
keycloakaffected 0 < 25.0.5
Red Hat · Red Hat Build of Keycloak
Red Hat · Red Hat Build of Keycloak
Red Hat · Red Hat build of Keycloak 22unaffected 22.0.13-1 < *
Red Hat · Red Hat build of Keycloak 22unaffected 22-18 < *
Red Hat · Red Hat build of Keycloak 22unaffected 22-21 < *
Red Hat · Red Hat build of Keycloak 24unaffected 24.0.8-1 < *
Red Hat · Red Hat build of Keycloak 24unaffected 24-17 < *
Red Hat · Red Hat build of Keycloak 24unaffected 24-17 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8
Red Hat · Red Hat JBoss Enterprise Application Platform 8
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:2.33.0-1.redhat_00015.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 1:2.0.0-2.redhat_00005.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:1.8.0-2.redhat_00001.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:2.2.0-2.redhat_00001.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:1.16.1-2.redhat_00007.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:3.2.2-28.redhat_2.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:2.15.1-1.redhat_00001.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:3.14.0-2.redhat_00006.1.el8eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8unaffected 0:4.0.5-1.redhat_00001.1.el8eap < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD