CVE-2017-12159 json
Keycloak CSRF Vulnerability
published 2017-10-26 9 y ago modified 2026-09-10 1 mo ago 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
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.1fixed: 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.el6fixed: 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.el7fixed: vendor fix RHSA-2017:2905
-
Red Hat Mobile Application Platform 4 keycloaknot 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-08).
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
-
access.redhat.com
/errata/RHSA-2017:2904
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2017:2905
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2017:2906
vendor-advisory, web, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1484111
web, issue-tracking, third-party-advisory, vdb-entry
-
securityfocus.com
/bid/101601
vdb-entry, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-12159
advisory
-
web.archive.org
/web/20210124113906/http://www.securityfocus.com/bid/101601
web
Sources
- CVE List CVE-2017-12159
- GitHub Advisory GHSA-7fmw-85qm-h22p
- NVD CVE-2017-12159
Fencer Vulns 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.