{"answers":{"affected":"2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 2 products.","exploited":"There is no known exploitation of CVE-2017-12159 in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-parent to 3.4.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2017-12159 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2017-12159 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-parent (Maven): affected all versions; fixed in 3.4.0\n- org.keycloak:keycloak-parent (Maven): affected all versions; fixed in 3.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-12159/ (Markdown: https://insights.sbomify.com/CVE-2017-12159/index.md)","id":"CVE-2017-12159","markdown":"https://insights.sbomify.com/CVE-2017-12159/index.md","name":"CVE-2017-12159","record":{"aliases":["CLEANSTART-2026-XS62872","GHSA-7fmw-85qm-h22p","MINI-5387-xrgm-5r86","MINI-5942-6869-9whp"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Keycloak identity server","requires_auth":"none","summary":"Attackers can hijack authenticated Keycloak sessions due to non-unique CSRF cookies, leading to account takeover or data disclosure.","user_interaction":"not_required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"keycloak","vendor":"keycloak"},{"product":"single_sign_on","vendor":"redhat"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Keycloak CSRF Vulnerability","id":"CVE-2017-12159","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"csrf","year":"2017"},"n_packages":2,"n_references":5,"next":{"headline":"Keycloak Oauth Implementation Error","id":"CVE-2017-12160"},"packages":[{"ecosystem":"Maven","fixed":["3.4.0"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-parent","purl":null,"source":"GHSA-7fmw-85qm-h22p"},{"ecosystem":"Maven","fixed":["3.4.0"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-parent","purl":"pkg:maven/org.keycloak/keycloak-parent","source":"GHSA-7fmw-85qm-h22p"}],"prev":{"headline":"Keycloak Reflected XSS","id":"CVE-2017-12158"},"products":["keycloak"],"published":"2017-10-26","related":[{"cvss_score":8.8,"headline":"Moderate severity vulnerability that affects org.keycloak:keycloak-core","id":"CVE-2017-12161","kev_date_added":null,"published":"2018-02-21"},{"cvss_score":8.8,"headline":"JBoss Keycloak CSRF Vulnerability","id":"CVE-2014-3709","kev_date_added":null,"published":"2017-10-18"},{"cvss_score":7.5,"headline":"Keycloak vulnerable to uncontrolled resource consumption","id":"CVE-2014-3651","kev_date_added":null,"published":"2017-12-29"},{"cvss_score":5.4,"headline":"Keycloak Reflected XSS","id":"CVE-2017-12158","kev_date_added":null,"published":"2017-10-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Red Hat, Inc."]},"summary":"Attackers can hijack authenticated Keycloak sessions due to non-unique CSRF cookies, leading to account takeover or data disclosure.","url":"https://insights.sbomify.com/CVE-2017-12159/"}