# CVE-2021-3827: ECP SAML binding bypasses authentication flows

- Severity: Medium 6.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Published: 2022-04-27T21:25:59.000Z
- Modified: 2026-07-08T06:30:00.191Z
- Also known as: GHSA-4pc7-vqv5-5r3v
- Weaknesses: CWE-287
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- keycloak: Fixed in v18.0.0
- org.keycloak:keycloak-saml-core (Maven): before 18.0.0
- redhat keycloak: before 18.0.0
- redhat single_sign-on: 7.0; 7.5.0
- redhat openshift_container_platform: 4.8; 4.9

## Every score

- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/keycloak/keycloak/security/advisories/GHSA-4pc7-vqv5-5r3v> (third-party-advisory, web)
- <https://github.com/keycloak/keycloak/commit/44000caaf5051d7f218d1ad79573bd3d175cad0d> (patch, third-party-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2007512> (issue-tracking, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2021-3827> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3827> (advisory)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2021-3827](https://www.cve.org/CVERecord?id=CVE-2021-3827), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4pc7-vqv5-5r3v](https://github.com/advisories/GHSA-4pc7-vqv5-5r3v), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-3827](https://nvd.nist.gov/vuln/detail/CVE-2021-3827), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3827 · Whole record: https://cve.day/CVE-2021-3827.json · Rebuilt by cve.day 2026-11-25T22:58:07.774Z
