SecurityContext

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

IdName
CWE-287Improper Authentication

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/keycloak/keycloak/commit/44000caaf5051d7f218d1ad79573bd3d175cad0dPatch, Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-3827Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2007512Issue Tracking, Vendor Advisory
https://github.com/keycloak/keycloak/security/advisories/GHSA-4pc7-vqv5-5r3vThird Party Advisory

Products

Same in every row:

  • Sources: nvd
ProductAffectedPlatform boundUrl
redhat:keycloak< 18.0.0no/v1/products/redhat/keycloak
redhat:openshift_container_platform= 4.9, = 4.8yes/v1/products/redhat/openshift_container_platform
redhat:single_sign-on= 7.5.0, = 7.0no/v1/products/redhat/single_sign-on

Projects

RepositoryLink kindsIndexedUrl
keycloak/keycloakcommit, fix, package, security_advisoryyes/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