{"id":"CVE-2023-4918","aliases":["GHSA-5q66-v53q-pm35","WID-SEC-W-2023-2312"],"summary":"Plaintext storage of user password","published_at":"2023-09-12T00:00:00Z","modified_at":"2026-07-16T03:59:27.600905Z","products":[{"slug":"keycloak","name":"Keycloak","category":"identity"}],"rating":{"severity":"high","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"BSI","rating":"mittel"},{"source":"Red Hat","rating":"Important"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.005739999935030937,"percentile":0.48151999711990356,"date":"2026-11-19T00:00:00Z"},"priority":9.8,"record_count":5,"vendors":["Red Hat","BSI","GitHub"],"details":"A flaw was found in the Keycloak package, more specifically org.keycloak.userprofile. When a user registers itself through registration flow, the \"password\" and \"password-confirm\" field from the form will occur as regular user attributes. All users and clients with proper rights and roles are able to read users attributes, allowing a malicious user with minimal access to retrieve the users passwords in clear text, jeopardizing their environment.","affected_stack":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-core","purl":"pkg:maven/org.keycloak/keycloak-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"22.0.2"},{"fixed":"22.0.3"}]}],"versions":["22.0.2"],"fixed":["22.0.3"],"provider":"osv","source":"GHSA-5q66-v53q-pm35","relation":"self"},{"ecosystem":"NVD","package":"redhat:keycloak","versions":["22.0.2"],"provider":"nvd","source":"CVE-2023-4918","relation":"self"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"not_affected","packages":["rh-sso7-keycloak"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-4918"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2023-4918","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-4918","license":"CC-BY-4.0","published_at":"2023-09-12T19:24:59.955Z","modified_at":"2024-09-25T19:53:21.639Z","summary":"Plaintext storage of user password","details":"A flaw was found in the Keycloak package, more specifically org.keycloak.userprofile. When a user registers itself through registration flow, the \"password\" and \"password-confirm\" field from the form will occur as regular user attributes. All users and clients with proper rights and roles are able to read users attributes, allowing a malicious user with minimal access to retrieve the users passwords in clear text, jeopardizing their environment.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2023-4918"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-4918"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2238588"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-5q66-v53q-pm35"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-2312","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-2312","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-09-12T22:00:00Z","modified_at":"2023-09-12T22:00:00Z","summary":"Keycloak: Schwachstelle ermöglicht Offenlegung von Informationen","details":"Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Keycloak ausnutzen, um Informationen offenzulegen.\n\nKeycloak ermöglicht Single Sign-On mit Identity and Access Management für moderne Anwendungen und Dienste.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2023-2312"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-2312.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-2312"},{"type":"WEB","url":"https://github.com/advisories/GHSA-5q66-v53q-pm35"}]},{"provider":"nvd","source_id":"CVE-2023-4918","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4918","severity":[],"affected":[{"ecosystem":"NVD","package":"redhat:keycloak","versions":["22.0.2"],"provider":"nvd","source":"CVE-2023-4918","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-5q66-v53q-pm35","relation":"self","url":"https://osv.dev/vulnerability/GHSA-5q66-v53q-pm35","license":"CC-BY-4.0","published_at":"2023-09-12T21:10:37Z","modified_at":"2026-07-16T03:59:27.600905Z","summary":"Keycloak vulnerable to Plaintext Storage of User Password","details":"A flaw was discovered in Keycloak Core package.  When a user registers itself through registration flow, the \"password\" and \"password-confirm\" field from the form will occur as regular attributes in the users attributes. The password is also created, but the user attributes must not be there. This way, any entities (all users and clients with proper rights/roles) are able to retrieve the users passwords in clear-text. \n\n### Impact\nPasswords for self-registered users are stored as cleartext attributes associated with the user. \n\n### Mitigation\nDisable self-registration for users in all realms until patched.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-5q66-v53q-pm35"}],"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-core","purl":"pkg:maven/org.keycloak/keycloak-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"22.0.2"},{"fixed":"22.0.3"}]}],"versions":["22.0.2"],"fixed":["22.0.3"],"provider":"osv","source":"GHSA-5q66-v53q-pm35","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-5q66-v53q-pm35"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4918"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-4918"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2238588"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"}]},{"provider":"redhat-vex","source_id":"CVE-2023-4918","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-4918","license":"CC-BY-4.0","published_at":"2023-09-12T00:00:00Z","modified_at":"2023-09-12T19:24:52.333653Z","summary":"keycloak: Plaintext Storage of User Password","details":"A flaw was found in the Keycloak package, more specifically org.keycloak.userprofile. When a user registers itself through registration flow, the \"password\" and \"password-confirm\" field from the form will occur as regular user attributes. All users and clients with proper rights and roles are able to read users attributes, allowing a malicious user with minimal access to retrieve the users passwords in clear text, jeopardizing their environment.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2023-4918"},{"type":"Red Hat","score":"Important","source":"CVE-2023-4918"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"not_affected","packages":["rh-sso7-keycloak"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-4918"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-4918.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-4918"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2238588"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-4918"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4918"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-5q66-v53q-pm35"}]}],"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-4918"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2238588"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-5q66-v53q-pm35"},{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-2312.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-2312"},{"type":"WEB","url":"https://github.com/advisories/GHSA-5q66-v53q-pm35"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4918"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-4918.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-4918"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2023-4918","url":"https://www.cve.org/CVERecord?id=CVE-2023-4918","license":"CC-BY-4.0","modified_at":"2024-09-25T19:53:21.639Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-2312","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-2312","license":"TLP:CLEAR, mirroring permitted","modified_at":"2023-09-12T22:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-4918","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4918","relation":"self"},{"provider":"osv","source_id":"GHSA-5q66-v53q-pm35","url":"https://osv.dev/vulnerability/GHSA-5q66-v53q-pm35","license":"CC-BY-4.0","modified_at":"2026-07-16T03:59:27.600905Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-4918","url":"https://access.redhat.com/security/cve/CVE-2023-4918","license":"CC-BY-4.0","modified_at":"2023-09-12T19:24:52.333653Z","relation":"self"}]}
