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
| Id | Name |
|---|---|
| CWE-347 | Improper Verification of Cryptographic Signature |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2024-8698 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8698.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/huydoppaz/CVE-2024-8698-POC | poc-in-github | 2024-10-10 |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| redhat:keycloak | all versions | no | cna_alias | /v1/products/redhat/keycloak |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keycloak/keycloak | package, releases, security_advisory | yes | /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