nday
CVE-2024-8698

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

Red Hat / Red Hat Build of Keycloak, Red Hat build of Keycloak 22, Red Hat build of Keycloak 24, Red Hat JBoss Enterprise Application Platform 8, Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8, Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 +5

Disclosed . nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: nuclei. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

cryptographic failure
CWE-347, stated by the CNA redhat and NVD, republishing [email protected]
network
AV:N in CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L (CVSS 3.1) from the CNA redhat
no user interaction
UI:N in CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L (CVSS 3.1) from the CNA redhat
nuclei
nuclei templates CVE-2024-8698
JBoss EAP
affected products in the CVE record: Red Hat · Red Hat JBoss Enterprise Application Platform 8, Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8, Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
Keycloak
affected products in the CVE record: Red Hat · Red Hat Build of Keycloak, Red Hat · Red Hat Single Sign-On 7, Red Hat · Red Hat Single Sign-On 7.6 for RHEL 7, Red Hat · Red Hat Single Sign-On 7.6 for RHEL 8, Red Hat · Red Hat Single Sign-On 7.6 for RHEL 9, Red Hat · Red Hat build of Keycloak 22, Red Hat · Red Hat build of Keycloak 24
web / application server
affected products in the CVE record: Red Hat · Red Hat JBoss Enterprise Application Platform 8, Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8, Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9the product type of JBoss EAP in nday's product registry
identity / access management
affected products in the CVE record: Red Hat · Red Hat Build of Keycloak, Red Hat · Red Hat Single Sign-On 7, Red Hat · Red Hat Single Sign-On 7.6 for RHEL 7, Red Hat · Red Hat Single Sign-On 7.6 for RHEL 8, Red Hat · Red Hat Single Sign-On 7.6 for RHEL 9, Red Hat · Red Hat build of Keycloak 22, Red Hat · Red Hat build of Keycloak 24the product type of Keycloak in nday's product registry
stage
POC
disclosed
cvss
7.7 HIGH v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2024-09-19T15:48Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
nuclei
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: success depends on conditions outside the attacker's control, such as gathering details of the target or winning a race
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L

CVSS 3.1 vector from the CVE record, scored by the CNA redhat.

Event log

+DISdisclosed

CVE record published by redhat. CVSS 7.7, high.

src cvelist · nday , bulk import · raw
{
  "id": 60177,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-8698",
  "occurred_at": "2024-09-19T15:48:18.464Z",
  "observed_at": "2026-11-12T17:00:49.411818Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L",
      "version": "3.1",
      "base_score": 7.7,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2024-09-19T17:28:59.153864Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2024-09-19T15:48:18.464Z",
    "assigner_short_name": "redhat"
  }
}
time unknownsource gave no time
+POCpublic PoC

Nuclei has detection template CVE-2024-8698 (Keycloak - SAML Core Package Signature Validation Flaw). The source gives no release time for the template.

src nuclei · nday , bulk import · raw
{
  "id": 56566,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8698.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2024-8698",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8698.yaml",
    "kind": "detection_template",
    "title": "Keycloak - SAML Core Package Signature Validation Flaw",
    "severity": "high",
    "confidence": "curated",
    "cvss_score": "7.7",
    "template_id": "CVE-2024-8698",
    "template_path": "http/cves/2024/CVE-2024-8698.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.