SecurityContext

CVE-2024-8698: Keycloak - Authentication Bypass

  • Cve: CVE-2024-8698
  • Name: Keycloak - Authentication Bypass
  • 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.
  • Impact: Attackers can bypass signature validation, potentially leading to privilege escalation or impersonation.
  • Remediation: Update to the latest version of Keycloak that addresses this flaw or apply security patches provided by the vendor.
  • Vulnerability impact: privilege_escalation
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft malicious SAML responses
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.7
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
  • Epss score: 0.0203
  • Epss percentile: 0.81544
  • Assignee: [email protected]
  • Published at: 2024-09-19T16:15:06Z
  • Age in days: 796
  • Modified at: 2026-08-04T09:16:34Z
  • Public exploits total: 1
  • References total: 15
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-8698
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, public exploits capped, rejected by nvd
  • Not known: vulnerability type, hackerone

Cwe

IdName
CWE-347Improper Verification of Cryptographic Signature

Nuclei templates

IdUrl
CVE-2024-8698https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8698.yaml

Public exploits

UrlSourceAdded date
https://github.com/huydoppaz/CVE-2024-8698-POCpoc-in-github2024-10-10

References

UrlSourceTags
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8698.yamlnuclei_templateNuclei Template
https://access.redhat.com/errata/RHSA-2024:6878nvd
https://access.redhat.com/errata/RHSA-2024:6879nvd
https://access.redhat.com/errata/RHSA-2024:6880nvd
https://access.redhat.com/errata/RHSA-2024:6882nvd
https://access.redhat.com/errata/RHSA-2024:6886nvd
https://access.redhat.com/errata/RHSA-2024:6887nvd
https://access.redhat.com/errata/RHSA-2024:6888nvd
https://access.redhat.com/errata/RHSA-2024:6889nvd
https://access.redhat.com/errata/RHSA-2024:6890nvd

Products

ProductAffectedPlatform boundSourcesUrl
redhat:keycloakall versionsnocna_alias/v1/products/redhat/keycloak

Projects

RepositoryLink kindsIndexedUrl
keycloak/keycloakpackage, releases, security_advisoryyes/v1/repositories/keycloak/keycloak

Index

  • Repositories: 2
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-10-10
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 39460
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, initial access since, hackerone reports

Nuclei template