CVE-2021-3827 ECP SAML binding bypasses authentication flows

Medium 6.8 Published Updated

Attackers can bypass MFA authentication in Keycloak by exploiting the default ECP binding flow with crafted SOAP requests.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3827?

CVE-2021-3827 is a medium-severity authentication bypass vulnerability in Redhat Keycloak, published on 23 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-287

Which versions are affected by CVE-2021-3827?

2 open source packages ship an affected version, including org.keycloak:keycloak-saml-core. It affects 3 products.

PackageAffectedFixed in
org.keycloak:keycloak-saml-core MavenAll versions18.0.0
org.keycloak:keycloak-saml-core MavenAll versions18.0.0

Products include Redhat Keycloak, Redhat Openshift Container Platform, Redhat Single Sign-On.

How do I fix CVE-2021-3827?

Upgrade org.keycloak:keycloak-saml-core to 18.0.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2021-3827 being exploited?

There is no known exploitation of CVE-2021-3827 in the wild and no public exploit code.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-4pc7-vqv5-5r3v.

Is CVE-2021-3827 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free