Skip to content
Fencer Intel
high 7.5

CVE-2017-12159 json

Keycloak CSRF Vulnerability

published 9y ago modified last mo. also GHSA-7fmw-85qm-h22p , EUVD-2022-2987

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.7%
EPSS 2.7% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.keycloak:keycloak-parent 3.4.0
  • rh-sso7-keycloak red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el7
  • rh-sso7-keycloak-server red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el7
  • rh-sso7-keycloak red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el6
  • rh-sso7-keycloak-server red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el6

red hat advisories RHSA-2017:2905RHSA-2017:2904

Is CVE-2017-12159 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-12159 updated cvss 5.4

keycloak: CSRF token fixation

  • Red Hat Single Sign-On 7.1
    fixed: vendor fix RHSA-2017:2906
  • Red Hat Single Sign-On 7.1 for RHEL 6 Server rh-sso7-keycloak 2.5.14-1.Final_redhat_1.1.jbcs.el6, rh-sso7-keycloak-server 2.5.14-1.Final_redhat_1.1.jbcs.el6
    fixed: vendor fix RHSA-2017:2904
  • Red Hat Single Sign-On 7.1 for RHEL 7 Server rh-sso7-keycloak 2.5.14-1.Final_redhat_1.1.jbcs.el7, rh-sso7-keycloak-server 2.5.14-1.Final_redhat_1.1.jbcs.el7
    fixed: vendor fix RHSA-2017:2905
  • Red Hat Mobile Application Platform 4 keycloak
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.71% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
maven org.keycloak:keycloak-parent
<3.4.0
3.4.0

Affected products

  • Red Hat, Inc. keycloak

Classification

Weakness
  • CWE-613 DEPRECATED: Insufficient Session Expiration

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.