{"schemaVersion":3,"id":"CVE-2023-2585","aliases":["GHSA-f5h4-wmp5-xhg6"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-12-21T09:24:16.632Z","modified":"2024-08-02T06:26:09.896Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.5,"severity":"low","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":3.5,"severity":"low","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","exploitability":2.3,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00694,"percentile":0.52056,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00694},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00694,"percentile":0.52056}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00694,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00694,"percentile":0.52056}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-358","name":"Improperly Implemented Security Check for Standard","description":"The product does not implement or incorrectly implements one or more security-relevant checks as specified by the design of a standardized algorithm, protocol, or technique.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/358.html"}],"affected":[{"vendor":"org.keycloak","product":"keycloak-server-spi-private","name":"org.keycloak:keycloak-server-spi-private","label":"keycloak-server-spi-private","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-server-spi-private","purlType":"maven","versions":[{"text":"< 21.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.2","eol":null,"hubHref":null},{"vendor":"org.keycloak","product":"keycloak-services","name":"org.keycloak:keycloak-services","label":"keycloak-services","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-services","purlType":"maven","versions":[{"text":"< 21.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"openshift_container_platform","name":"openshift container platform","label":"openshift_container_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.11","noFixRecorded":false,"fixedIn":null},{"text":"4.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.11 | 4.12","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"},{"vendor":"redhat","product":"openshift_container_platform_for_ibm_z","name":"openshift container platform for ibm z","label":"openshift_container_platform_for_ibm_z","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.9","noFixRecorded":false,"fixedIn":null},{"text":"4.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.9 | 4.10","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform_for_ibm_z"},{"vendor":"redhat","product":"openshift_container_platform_for_linuxone","name":"openshift container platform for linuxone","label":"openshift_container_platform_for_linuxone","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.9","noFixRecorded":false,"fixedIn":null},{"text":"4.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.9 | 4.10","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform_for_linuxone"},{"vendor":"redhat","product":"openshift_container_platform_for_power","name":"openshift container platform for power","label":"openshift_container_platform_for_power","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.9","noFixRecorded":false,"fixedIn":null},{"text":"4.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.9 | 4.10","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform_for_power"},{"vendor":"redhat","product":"single_sign-on","name":"single sign-on","label":"single_sign-on","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.6","noFixRecorded":false,"fixedIn":null},{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.6 | na","eol":null,"hubHref":"/vendor/redhat/single_sign-on"}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:3883","label":"access.redhat.com/errata/RHSA-2023:3883","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3884","label":"access.redhat.com/errata/RHSA-2023:3884","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3885","label":"access.redhat.com/errata/RHSA-2023:3885","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3888","label":"access.redhat.com/errata/RHSA-2023:3888","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3892","label":"access.redhat.com/errata/RHSA-2023:3892","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-2585","label":"access.redhat.com/security/cve/CVE-2023-2585","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2196335","label":"bugzilla.redhat.com/show_bug.cgi?id=2196335","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","WEB","Vendor Advisory"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-f5h4-wmp5-xhg6","label":"github.com/keycloak/keycloak/security/advisories/GHSA-f5h4-wmp5-xhg6","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2585","label":"nvd.nist.gov/vuln/detail/CVE-2023-2585","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak/commit/04e6244c387a1bde86184635a0049537611e3915","label":"github.com/keycloak/keycloak/commit/04e6244c387a1bde86184635a0049537611e3915","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2023:3883","RHSA-2023:3884","RHSA-2023:3885"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-12-21T09:24:16.632Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T06:26:09.896Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:59:50.694Z","stale":false,"partial":false}}