CVE-2020-1731 Predictable password in Keycloak

Critical 9.1 Published Updated

The Keycloak operator generates predictable admin passwords in the same namespace, allowing attackers to take over accounts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-1731?

CVE-2020-1731 is a critical vulnerability in Red Hat keycloak, published on 2 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw was found in all versions of the Keycloak operator, before version 8.0.2,(community only) where the operator generates a random admin password when installing Keycloak, however the password remains the same when deployed to the same OpenShift namespace.

Weakness: CWE-330, CWE-341

Which versions are affected by CVE-2020-1731?

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

PackageAffectedFixed in
org.keycloak:keycloak-core MavenAll versions8.0.2
org.keycloak:keycloak-core MavenAll versions8.0.2

Products include Redhat Keycloak Operator.

How do I fix CVE-2020-1731?

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

Is CVE-2020-1731 being exploited?

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

Sources

Also known as GHSA-6pmv-7pr9-cgrj.

Is CVE-2020-1731 in your software?

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

Check your SBOMs for free