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

Source: https://junglewise.ai/threats/cve-2021-3827-ecp-saml-binding-bypasses-authentication-flows  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-04-27  
License: CC BY 4.0 with a link back

CVE-2021-3827 · Severity: low · CVSS 3.1 · Published 2022-04-27

ECP SAML binding bypasses authentication flows

Technologies: [org.keycloak:keycloak-saml-core (Maven)](https://junglewise.ai/threats/technologies/org-keycloak-keycloak-saml-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-3827 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-3827 being exploited in the wild.

**How severe is CVE-2021-3827?** Low severity, with a CVSS score of 3.1, published 27 April 2022.

**Which products and versions are affected?** org.keycloak:keycloak-saml-core (Maven) ECOSYSTEM:introduced=0,fixed=18.0.0.

**Is there a fix for CVE-2021-3827?** Yes. org.keycloak:keycloak-saml-core (Maven): upgrade to 18.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-3827?** Check whether you run org.keycloak:keycloak-saml-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.keycloak:keycloak-saml-core (Maven): upgrade to 18.0.0 or later

  ```sh
  # set org.keycloak:keycloak-saml-core to 18.0.0 in your pom.xml or build.gradle
  ```


## Affected products

- org.keycloak:keycloak-saml-core (Maven) ECOSYSTEM:introduced=0,fixed=18.0.0

## Identifiers

- CVE-2021-3827
- GHSA-4pc7-vqv5-5r3v

## Related threats

- [Keycloak denial of service in SAML endpoint](https://junglewise.ai/threats/cve-2026-7307-keycloak-denial-of-service-in-saml-endpoint)
- [Red Hat Keycloak Denial of Service via SAMLRequest decompression](https://junglewise.ai/threats/cve-2026-2575-red-hat-keycloak-denial-of-service-via-samlrequest-decompression)
- [Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak](https://junglewise.ai/threats/cve-2024-8698-improper-verification-of-saml-responses-leading-to-privilege)
- [Duplicate Advisory: Keycloak SAML signature validation flaw](https://junglewise.ai/threats/duplicate-advisory-keycloak-saml-signature-validation-flaw-ccf0b80d)
- [Keycloak allows arbitrary Javascript to be uploaded for SAML protocol mapper even if UPLOAD_SCRIPTS feature disabled](https://junglewise.ai/threats/keycloak-allows-arbitrary-javascript-to-be-uploaded-for-saml-protocol-a6a53f84)
