{"id":"CVE-2017-12159","aliases":["EUVD-2022-2987","GHSA-7fmw-85qm-h22p","RHSA-2017:2904","RHSA-2017:2905"],"status":"published","title":"Keycloak CSRF Vulnerability","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.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02711,"percentile":0.86081,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-613"],"published":"2017-10-26T17:00:00Z","modified":"2026-09-10T03:49:20Z","fixes":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-parent","fixed_in":["3.4.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.0"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.0"}]}],"versions":["1.0-alpha-1","1.0-alpha-1-12062013","1.0-alpha-2","1.0-alpha-3","1.0-alpha-4","1.0-beta-1","1.0-beta-1-20150521","1.0-beta-1-20150523","1.0-beta-2","1.0-beta-3","1.0-beta-4","1.0-final","1.0-rc-1","1.0-rc-2","1.0.1.Final","1.0.2.Final","1.0.3.Final","1.0.4.Final","1.0.5.Final","1.1.0.Beta1","1.1.0.Beta2","1.1.0.Final","1.1.1.Final","1.2.0.Beta1","1.2.0.CR1","1.2.0.Final","1.3.0.Final","1.3.1.Final","1.4.0.Final","1.5.0-Final","1.5.0.Final","1.5.1.Final","1.6.0.Final","1.6.1.Final","1.7.0.CR1","1.7.0.Final","1.8.0.Alpha1","1.8.0.CR1","1.8.0.CR2","1.8.0.CR3","1.8.0.Final","1.8.1.Final","1.9.0.CR1","1.9.0.Final","1.9.1.Final","1.9.2.Final","1.9.3.Final","1.9.4.Final","1.9.5.Final","1.9.7.Final","1.9.8.Final","2.0.0.CR1","2.0.0.Final","2.1.0.CR1","2.1.0.Final","2.2.0.CR1","2.2.0.Final","2.2.1.Final","2.3.0.CR1","2.3.0.Final","2.4.0.CR1","2.4.0.Final","2.5.0.CR1","2.5.0.Final","2.5.1.Final","2.5.4.Final","2.5.5.Final","3.0.0.CR1","3.0.0.Final","3.1.0.CR1","3.1.0.Final","3.2.0.CR1","3.2.0.Final","3.2.1.Final","3.3.0.CR1","3.3.0.CR2","3.3.0.Final","3.4.0.CR1"]},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el6","package":"rh-sso7-keycloak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.5.14-1.Final_redhat_1.1.jbcs.el6"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el6","package":"rh-sso7-keycloak-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.5.14-1.Final_redhat_1.1.jbcs.el6"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el7","package":"rh-sso7-keycloak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.5.14-1.Final_redhat_1.1.jbcs.el7"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el7","package":"rh-sso7-keycloak-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.5.14-1.Final_redhat_1.1.jbcs.el7"}]}],"bundled":5}],"products":[{"vendor":"keycloak","product":"keycloak"},{"vendor":"red hat, inc.","product":"keycloak"},{"vendor":"redhat","product":"single_sign_on"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1484111","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Third Party Advisory","VDB Entry","web","report"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2904","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2905","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2906","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory","web"]},{"url":"http://www.securityfocus.com/bid/101601","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12159","tags":["advisory"]},{"url":"https://web.archive.org/web/20210124113906/http://www.securityfocus.com/bid/101601","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7fmw-85qm-h22p"},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.1/html/release_notes/","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1484154","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1489161","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1503103","tags":["report"]},{"url":"https://issues.redhat.com/browse/RHSSO-1121","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_2904.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2014-9970","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1455566","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2014-9970","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-9970","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2017-12158","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12158","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12158","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2017-12159","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12159","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2017-12160","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12160","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12160","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2017-12197","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12197","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12197","tags":["advisory"]},{"url":"https://issues.redhat.com/browse/RHSSO-1122","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_2905.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-12159","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.","status":"published","published":"2017-10-26T17:00:00Z","modified":"2024-09-16T21:02:35.248Z","cwes":["CWE-613"],"updated_at":"2026-11-02T14:33:17.59533Z"}],"euvd":[{"id":"EUVD-2022-2987","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.","status":"published","published":"2017-10-26T17:00:00Z","modified":"2024-09-16T21:02:35Z","updated_at":"2026-11-03T00:55:09.104839Z"}],"ghsa":[{"id":"GHSA-7fmw-85qm-h22p","title":"Keycloak CSRF Vulnerability","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.","status":"published","published":"2022-05-13T01:38:14Z","modified":"2023-07-26T19:15:54Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T14:36:58.177785Z"}],"nvd":[{"id":"CVE-2017-12159","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.","status":"published","published":"2017-10-26T17:29:00.267Z","modified":"2026-06-17T01:02:47.763Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T14:04:08.01771Z"}],"osv":[{"id":"GHSA-7fmw-85qm-h22p","title":"Keycloak CSRF Vulnerability","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.","status":"published","published":"2022-05-13T01:38:14Z","modified":"2026-09-10T03:49:20.680572817Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T15:46:41.002603Z"},{"id":"RHSA-2017:2904","title":"Red Hat Security Advisory: rh-sso7-keycloak security update","status":"published","published":"2024-09-13T13:38:38Z","modified":"2026-08-05T10:04:49Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:53:04.822845Z"},{"id":"RHSA-2017:2905","title":"Red Hat Security Advisory: rh-sso7-keycloak security update","status":"published","published":"2024-09-13T13:38:42Z","modified":"2026-08-05T10:04:49Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:53:04.822845Z"}]}}
