CVE-2020-27826 Authentication Bypass in keycloak

Medium 4.2 Published Updated

Attackers can modify their own NameID attribute via the Account REST API to impersonate admin users, leading to privilege escalation.

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-2020-27826?

CVE-2020-27826 is a medium-severity vulnerability in Redhat Keycloak, published on 28 May 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw was found in Keycloak before version 12.0.0 where it is possible to update the user's metadata attributes using Account REST API. This flaw allows an attacker to change its own NameID attribute to impersonate the admin user for any particular application.

Weakness: CWE-250

Which versions are affected by CVE-2020-27826?

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

PackageAffectedFixed in
org.keycloak:keycloak-core MavenAll versions12.0.0
org.keycloak:keycloak-core MavenAll versions12.0.0
Linux distribution packages (6)
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el6All versions0:9.0.10-1.redhat_00001.1.el6sso
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el6All versions0:9.0.10-1.redhat_00001.1.el6sso
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el7All versions0:9.0.10-1.redhat_00001.1.el7sso
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el7All versions0:9.0.10-1.redhat_00001.1.el7sso
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el8All versions0:9.0.10-1.redhat_00001.1.el8sso
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el8All versions0:9.0.10-1.redhat_00001.1.el8sso

Products include Redhat Keycloak, Redhat Single Sign-On.

How do I fix CVE-2020-27826?

Upgrade org.keycloak:keycloak-core to 12.0.0 or later.

Is CVE-2020-27826 being exploited?

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

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-m9cj-v55f-8x26, RHSA-2020:5526, RHSA-2020:5527, RHSA-2020:5528.

Is CVE-2020-27826 in your software?

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

Check your SBOMs for free