CVE-2017-12159 Keycloak CSRF Vulnerability

High 7.5 Published Updated

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.

PackageAffectedFixed in
org.keycloak:keycloak-parent MavenAll versions3.4.0
org.keycloak:keycloak-parent MavenAll versions3.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.

Sources

Also known as CLEANSTART-2026-XS62872, GHSA-7fmw-85qm-h22p, MINI-5387-xrgm-5r86, MINI-5942-6869-9whp.

Is CVE-2017-12159 in your software?

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

Check your SBOMs for free