{"id":"CVE-2023-3597","published":"2024-04-25T12:20:11Z","modified":"2025-11-11T15:57:27Z","title":"Keycloak: secondary factor bypass in step-up authentication","vendor":"Red Hat","product":"Red Hat build of Keycloak 22","tier":"tail","description":{"text":"A flaw was found in Keycloak, where it does not correctly validate its client step-up authentication in org.keycloak.authentication. This flaw allows a remote user authenticated with a password to register a false second authentication factor along with an existing one and bypass authentication.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00603,"percentile":0.49794,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:1866","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:1867","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:1868","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-3597","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2221760","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":9.96},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":["< 22.0.10",">= 23.0.0, < 24.0.3"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","versions":["all versions"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-02T15:08:53.952771Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-services","vulnerableRanges":["<22.0.10",">=23.0.0, <24.0.3"],"patched":["22.0.10","24.0.3"],"from":["GHSA-4f53-xh3v-g8x4"],"provenance":"source"}],"summary":{"text":"The flaw is in the step-up authentication logic of Keycloak's org.keycloak.authentication component, shipped in Red Hat build of Keycloak 22, where client step-up authentication is not correctly validated. A remote user who already holds valid password credentials can register a false second authentication factor alongside an existing one, bypassing authentication; this requires network access and low-privilege authenticated access, with attack complexity noted as high and no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:12Z"},"euvd":{"id":"EUVD-2024-1090","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-build-of-keycloak-26-4-cve-2017-2582","parents":[{"from":"CVE-2020-10686","to":"CVE-2023-3597","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/services/resources/account/AccountCredentialResource.java"],"commits":["https://github.com/keycloak/keycloak/commit/5ddd605ee96b8551c7eb00b609a0b97939925b77","https://github.com/keycloak/keycloak/commit/aa634aee882892960a526e49982806e103c8a432"],"basis":"shared function","functions":["isFlowEffectivelyDisabled"]}]},{"from":"CVE-2020-27826","to":"CVE-2023-3597","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/services/messages/Messages.java"],"commits":["https://github.com/keycloak/keycloak/commit/dae4a3eaf26590b8d441b8e4bec3b700ee303b72","https://github.com/keycloak/keycloak/commit/aa634aee882892960a526e49982806e103c8a432"],"basis":"shared function","functions":["Messages"]}]},{"from":"CVE-2022-1274","to":"CVE-2023-3597","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/services/messages/Messages.java"],"commits":["https://github.com/keycloak/keycloak/commit/fc3c61235fa30132123c17ed8702ff7b3a672fe9","https://github.com/keycloak/keycloak/commit/aa634aee882892960a526e49982806e103c8a432"],"basis":"shared function","functions":["Messages"]}]}],"children":[{"from":"CVE-2023-3597","to":"CVE-2025-12150","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/authentication/requiredactions/WebAuthnRegister.java"],"commits":["https://github.com/keycloak/keycloak/commit/aa634aee882892960a526e49982806e103c8a432","https://github.com/keycloak/keycloak/commit/4136a677e7e24f6685ed25567e191e1003200339"],"basis":"rarely changed file"}]},{"from":"CVE-2023-3597","to":"CVE-2026-18963","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/authentication/AuthenticationProcessor.java","services/src/main/java/org/keycloak/authentication/DefaultAuthenticationFlow.java"],"commits":["https://github.com/keycloak/keycloak/commit/aa634aee882892960a526e49982806e103c8a432","https://github.com/keycloak/keycloak/commit/dc2d4e524b4dae85aedc87ca28b9e4fa567d56c1"],"basis":"rarely changed file"}]},{"from":"CVE-2023-3597","to":"CVE-2026-9791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server-spi-private/src/main/java/org/keycloak/events/Errors.java","services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java","services/src/main/java/org/keycloak/services/messages/Messages.java"],"commits":["https://github.com/keycloak/keycloak/commit/aa634aee882892960a526e49982806e103c8a432","https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b","https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df"],"basis":"shared function","functions":["Errors","Messages"]}]}]}}