CVE-2017-12159 Keycloak CSRF Vulnerability
Attackers can hijack authenticated Keycloak sessions due to non-unique CSRF cookies, leading to account takeover or data disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-12159?
CVE-2017-12159 is a high-severity vulnerability in Red Hat, Inc. keycloak, published on 26 Oct 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
It was found that the cookie used for CSRF prevention in Keycloak was not unique to each session. An attacker could use this flaw to gain access to an authenticated user session, leading to possible information disclosure or further attacks.
Weakness: CWE-613
Which versions are affected by CVE-2017-12159?
2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-parent Maven | All versions | 3.4.0 |
org.keycloak:keycloak-parent Maven | All versions | 3.4.0 |
Products include Keycloak Keycloak, Redhat Single Sign On.
How do I fix CVE-2017-12159?
Upgrade org.keycloak:keycloak-parent to 3.4.0 or later.
Is CVE-2017-12159 being exploited?
There is no known exploitation of CVE-2017-12159 in the wild and no public exploit code.
Other vulnerabilities in Red Hat, Inc. keycloak
Sources
Also known as CLEANSTART-2026-XS62872, GHSA-7fmw-85qm-h22p, MINI-5387-xrgm-5r86, MINI-5942-6869-9whp.