CVE-2021-3827: Keycloak - Authentication Bypass
- Cve: CVE-2021-3827
- Name: Keycloak - Authentication Bypass
- Description: A flaw was found in keycloak, where the default ECP binding flow allows other authentication flows to be bypassed. By exploiting this behavior, an attacker can bypass the MFA authentication by sending a SOAP request with an AuthnRequest and Authorization header with the user's credentials. The highest threat from this vulnerability is to confidentiality and integrity.
- Impact: Attackers can bypass MFA, compromising user confidentiality and integrity of authentication process.
- Remediation: Update to the latest version of Keycloak that addresses this flaw or apply security patches provided by the vendor.
- Vulnerability type: broken_authentication
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.8
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.01175
- Epss percentile: 0.68203
- Assignee: [email protected]
- Published at: 2022-08-23T16:15:10Z
- Age in days: 1554
- Modified at: 2026-06-17T04:05:50Z
- Patch available: yes
- References total: 4
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3827
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-287 | Improper Authentication |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/keycloak/keycloak/commit/44000caaf5051d7f218d1ad79573bd3d175cad0d | Patch, Third Party Advisory |
| https://access.redhat.com/security/cve/CVE-2021-3827 | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2007512 | Issue Tracking, Vendor Advisory |
| https://github.com/keycloak/keycloak/security/advisories/GHSA-4pc7-vqv5-5r3v | Third Party Advisory |
Products
Same in every row:
- Sources: nvd
| Product | Affected | Platform bound | Url |
|---|---|---|---|
| redhat:keycloak | < 18.0.0 | no | /v1/products/redhat/keycloak |
| redhat:openshift_container_platform | = 4.9, = 4.8 | yes | /v1/products/redhat/openshift_container_platform |
| redhat:single_sign-on | = 7.5.0, = 7.0 | no | /v1/products/redhat/single_sign-on |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keycloak/keycloak | commit, fix, package, security_advisory | yes | /v1/repositories/keycloak/keycloak |
Index
- Repositories: 2
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 39460
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports