CVE-2021-3827
MEDIUM 6.8CVSS 3.1ECP SAML binding bypasses authentication flows
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.
- Published
- 23 Aug 2022
- Last modified
- 8 Jul 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- GHSA-4pc7-vqv5-5r3v
- Sources
- NVDJSONOSV GHSA-4pc7-vqv5-5r3vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* |
< 18.0.0 | 18.0.0 |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:7.5.0:*:*:*:*:*:*:* |
= 7.5.0 | |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.8:*:*:*:*:*:*:* |
= 4.8 | |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| OSV | Maven | org.keycloak:keycloak-saml-core | < 18.0.0 | 18.0.0 |
References
- https://access.redhat.com/security/cve/CVE-2021-3827 · Vendor Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2007512 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/keycloak/keycloak/commit/44000caaf5051d7f218d1ad79573bd3d175cad0d · Patch, Third Party Advisory, WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-4pc7-vqv5-5r3v · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3827 · ADVISORY
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 23 Aug 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 27 Apr 2022)