Plaintext storage of user password
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-4918
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:48 UTC · Revision 1
Source evidence
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.
osv:CVE-2023-4918
Complete source record
{
"id": "ee5636377ea1e512a0bb3e7f55d3630b786d489c1df404356454ec4b7ddb7591",
"url": "https://osv.dev/vulnerability/CVE-2023-4918",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Plaintext storage of user password",
"summary": "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.",
"evidence": "osv:CVE-2023-4918",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-4918",
"aliases": [
"CVE-2023-4918",
"GHSA-5q66-v53q-pm35"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/keycloak/keycloak",
"type": "GIT",
"events": [
{
"introduced": "275f7a2368db7d99f37cea2b16ae444b764536f6"
},
{
"last_affected": "275f7a2368db7d99f37cea2b16ae444b764536f6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redhat:keycloak:22.0.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "22.0.2"
},
{
"last_affected": "22.0.2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"22.0.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-4918.json"
}
}
],
"modified": "2026-10-28T02:30:30.374707667Z",
"provider": "osv",
"references": [
"https://access.redhat.com/downloads/content/package-browser/",
"https://access.redhat.com/security/cve/CVE-2023-4918",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4918.json",
"https://github.com/keycloak/keycloak/security/advisories/GHSA-5q66-v53q-pm35",
"https://nvd.nist.gov/vuln/detail/CVE-2023-4918",
"https://bugzilla.redhat.com/show_bug.cgi?id=2238588"
],
"provider_metadata": {
"cwe_ids": [
"CWE-256"
],
"cna_assigner": "redhat",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4918.json"
}
},
"related_cves": [
{
"value": "CVE-2023-4918",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496992,
"published_at": "2023-09-12T19:24:59.955+00:00"
}