{"answers":{"affected":"4 open source packages ship an affected version, including org.keycloak:keycloak-server-spi-private and org.keycloak:keycloak-services. It affects 5 products.","exploited":"There is no known exploitation of CVE-2023-2585 in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-server-spi-private to 21.1.2 or later.","what":"CVE-2023-2585 is a low-severity authentication bypass vulnerability in Redhat Openshift Container Platform, published on 21 Dec 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-2585 and fix it if it is affected.\n\nWhat it is: CVE-2023-2585 is a low-severity authentication bypass vulnerability in Redhat Openshift Container Platform, published on 21 Dec 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-2585 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-server-spi-private (Maven): affected all versions; fixed in 21.1.2\n- org.keycloak:keycloak-server-spi-private (Maven): affected all versions; fixed in 21.1.2\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 21.1.2\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 21.1.2\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-2023-2585/ (Markdown: https://insights.sbomify.com/CVE-2023-2585/index.md)","id":"CVE-2023-2585","markdown":"https://insights.sbomify.com/CVE-2023-2585/index.md","name":"CVE-2023-2585","record":{"aliases":["GHSA-f5h4-wmp5-xhg6"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Keycloak SSO","requires_auth":"high_privilege","summary":"Attackers can spoof device authorization requests to trick admins into granting consent to malicious OAuth clients, leading to unauthorized access.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"openshift_container_platform","vendor":"redhat"},{"product":"openshift_container_platform_for_ibm_z","vendor":"redhat"},{"product":"openshift_container_platform_for_linuxone","vendor":"redhat"},{"product":"openshift_container_platform_for_power","vendor":"redhat"},{"product":"single_sign-on","vendor":"redhat"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-358","name":"Improperly Implemented Security Check for Standard"}],"description":"Keycloak's device authorization grant does not correctly validate the device code and client ID. An attacker client could abuse the missing validation to spoof a client consent request and trick an authorization admin into granting consent to a malicious OAuth client or possible unauthorized access to an existing OAuth client.","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: client access via device auth request spoof","id":"CVE-2023-2585","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"redhat:openshift_container_platform","products":["redhat:openshift_container_platform","redhat:single_sign-on"],"type":"auth_bypass","year":"2023"},"n_packages":4,"n_references":7,"next":{"headline":"Auth bypass in Remote Management System","id":"CVE-2023-2586"},"packages":[{"ecosystem":"Maven","fixed":["21.1.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-server-spi-private","purl":null,"source":"GHSA-f5h4-wmp5-xhg6"},{"ecosystem":"Maven","fixed":["21.1.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-server-spi-private","purl":"pkg:maven/org.keycloak/keycloak-server-spi-private","source":"GHSA-f5h4-wmp5-xhg6"},{"ecosystem":"Maven","fixed":["21.1.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":null,"source":"GHSA-f5h4-wmp5-xhg6"},{"ecosystem":"Maven","fixed":["21.1.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"GHSA-f5h4-wmp5-xhg6"}],"prev":{"headline":"PixelYourSite \u003c= 9.3.6 and PixelYourSite Pro \u003c= 9.6.1 - Authenticated (Administrator+) Stored Cross-Site Scripting","id":"CVE-2023-2584"},"products":["RHEL-8 based Middleware Containers","Red Hat Single Sign-On 7","Red Hat Single Sign-On 7.6 for RHEL 7","Red Hat Single Sign-On 7.6 for RHEL 8","Red Hat Single Sign-On 7.6 for RHEL 9"],"published":"2023-12-21","related":[{"cvss_score":9.8,"headline":"Missing authorization in cluster-ingress-operator","id":"CVE-2020-27836","kev_date_added":null,"published":"2022-08-22"},{"cvss_score":9,"headline":"Misconfiguration in openshift-ansible","id":"CVE-2018-1085","kev_date_added":null,"published":"2018-06-15"},{"cvss_score":8.8,"headline":"Privilege escalation in Red Hat OpenShift Container Platform 4","id":"CVE-2026-54099","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.8,"headline":"Ose-cluster-ingress-operator: remote code execution through haproxy configuration injection","id":"CVE-2026-1784","kev_date_added":null,"published":"2026-06-02"},{"cvss_score":8.8,"headline":"Privilege escalation in openshift","id":"CVE-2021-20182","kev_date_added":null,"published":"2021-02-23"},{"cvss_score":8.8,"headline":"xterm vulnerable to remote code execution","id":"CVE-2019-0542","kev_date_added":null,"published":"2019-01-09"},{"cvss_score":8.5,"headline":"Privilege escalation in source-to-image","id":"CVE-2018-10843","kev_date_added":null,"published":"2018-07-02"}],"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-08-02","vendors":["Red Hat"]},"summary":"Attackers can spoof device authorization requests to trick admins into granting consent to malicious OAuth clients, leading to unauthorized access.","url":"https://insights.sbomify.com/CVE-2023-2585/"}