CVE-2023-4918
Redhat Keycloak 22.0.2
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2023-4918 is a high-severity Plaintext Storage of a Password (CWE-256) vulnerability in Redhat Keycloak. Its CVSS base score is 8.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique OS Credential Dumping (T1003); ranked at the 48th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-2438
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Likely Mitigating Controls
Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Role-based training covers secure transmission methods, mitigating cleartext transmission of sensitive data.
By requiring documented security controls for information exchanges, the control reduces the risk of cleartext transmission of sensitive data.
Mapping transmission actions in data flows helps prevent cleartext transmission of sensitive information.
Settings can enforce secure transmission protocols to prevent cleartext transmission of sensitive data.
Policy addresses secure transport and handling of media to avoid cleartext transmission of sensitive information.
Enforces safeguards against cleartext transmission of CUI when data leaves organizational boundaries to external systems.
Explicit controls and continuous oversight on external system services prevent cleartext transmission of sensitive information over provider-managed channels.
Key-establishment procedures specify secure distribution channels that preclude cleartext transmission of key material.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Encryption of data-in-transit directly prevents cleartext transmission while the control also addresses integrity and availability.
Encryption and hashing of data-at-rest directly prevent plaintext password storage in files.
Credential management practices normally include secure storage requirements for passwords.
Protecting data-in-use can limit exposure of passwords held in memory.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
A.5.17 mandates that passwords be stored in protected form, so implementing it removes existing plaintext storage.
A.8.24 well implemented mandates cryptographic protection of stored information, and passwords are stored information whose confidentiality requires protection; the clause's broad cryptography mandate (purpose clause, guidance on algorithms and usage practices) reaches password hashing as a cryptographic technique, so applying it where passwords were previously stored in plaintext removes the weakness with no remainder, consistent with the owner's `full` rulings on A.8.24 -> CWE-311 and CWE-312.
A.8.21 mandates identifying/implementing network service security features (explicitly including encryption and connection controls), formulating rules that cover authentication/authorization/monitoring/VPNs, and ensuring providers do the same; this stops cleartext transmission from being exploitable in the large majority of network channels, with a bounded remainder (e.g. internal non-networked flows or unaddressed legacy protocols).
A.8.29's SOURCE reach (code review, SAST/code analysis tools, architecture review) directly addresses plaintext password storage in source files, configuration files, and registry keys — the dominant cases in CWE-256's examples — and the clause explicitly names testing of authentication functions (8.5); the bounded remainder is passwords stored only in memory or in configuration artefacts outside the reviewed scope, which is nameable but not zero.
A.8.3's access controls block unauthorized reading of files containing plaintext passwords, which is the primary exploitation path for CWE-256; the weakness remains present (password still in plaintext) but exploitation is denied to unauthorized readers, with the remainder being memory-resident passwords and cases where the application process itself is compromised.
Mandating cryptographic protection and stronger authentication on public networks stops the transmission of plaintext sensitive information.