CVE-2021-3827: Medium severity redhat keycloak vulnerability

Published Sep 2, 2021
·
Updated

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.

Other sources

For each SAML client it is possible to send an AuthnRequest message via SOAP with Basic Authorization header and Keycloak will successfully authenticate the user for the client and will not consider the authentication flow applied.

The presence of the flow is hidden from the administrator, it is not possible to disable it in the client's configuration similarly as direct grant etc.

https://issues.redhat.com/browse/KEYCLOAK-19177

Red Hat

Affected Software

12 affected componentsFixes available
redhat/rh-sso7-keycloak<0:15.0.4-1.redhat_00001.1.el7
0:15.0.4-1.redhat_00001.1.el7
redhat/rh-sso7-keycloak<0:15.0.4-1.redhat_00001.1.el8
0:15.0.4-1.redhat_00001.1.el8
redhat/redhat-sso<7-sso75-openshift-rhel8
7-sso75-openshift-rhel8
redhat/keycloak-server-spi-private<18.0.0
18.0.0
redhat keycloak<18.0.0
redhat Single Sign-on=7.0
redhat Single Sign-on=7.5.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat OpenShift Container Platform=4.8
redhat OpenShift Container Platform=4.9
redhat Enterprise Linux=8.0

Event History

Sep 2, 2021
CVE Published
12:00 AM
Sep 24, 2021
Data Sourced
via Red Hat·06:19 AM
DescriptionSeverityAffected Software
Aug 23, 2022
CVE Published
via MITRE·03:52 PM
Data Sourced
via MITRE·03:52 PM
DescriptionWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-3827?

CVE-2021-3827 is a vulnerability found in Keycloak that allows other authentication flows to be bypassed, potentially enabling an attacker to bypass MFA authentication.

2

How does CVE-2021-3827 work?

CVE-2021-3827 works by exploiting the default ECP binding flow in Keycloak, allowing an attacker to bypass MFA authentication by sending a SOAP request with an AuthnRequest and Authorization header containing the user's credentials.

3

What is the severity of CVE-2021-3827?

CVE-2021-3827 has a severity rating of 6.8 (medium).

4

Which software versions are affected by CVE-2021-3827?

Keycloak versions up to and excluding 18.0.0, rh-sso7-keycloak versions 0:15.0.4-1.redhat_00001.1.el7 and 0:15.0.4-1.redhat_00001.1.el8, and redhat-sso version 7-sso75-openshift-rhel8 are affected by CVE-2021-3827.

5

How can I mitigate CVE-2021-3827?

To mitigate CVE-2021-3827, update your Keycloak and related software to versions that include the necessary fixes. Refer to the provided remediation links for more information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203