CVE-2020-1731 Predictable password in Keycloak
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-core Maven | All versions | 8.0.2 |
org.keycloak:keycloak-core Maven | All versions | 8.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.