Security Resilience

CVE-2023-4918

Redhat Keycloak 22.0.2

Published
12 September 2023
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0057 48th percentile
Risk Priority 64 floored blend · peak EPSS

CVSS 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

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

T1003 OS Credential Dumping Credential Access
Adversaries may attempt to dump credentials to obtain account login and credential material, normally in the form of a hash or a clear text password.
T1003.001 LSASS Memory Credential Access
Adversaries may attempt to access credential material stored in the process memory of the Local Security Authority Subsystem Service (LSASS).
T1003.007 Proc Filesystem Credential Access
Adversaries may gather credentials from the proc filesystem or `/proc`.
T1016.002 Wi-Fi Discovery Discovery
Adversaries may search for information about Wi-Fi networks, such as network names and passwords, on compromised systems.
T1040 Network Sniffing Credential Access
Adversaries may passively sniff network traffic to capture information about an environment, including authentication material passed over the network.
T1078 Valid Accounts Stealth
Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-5416Same product: Redhat Keycloak
CVE-2025-7365Same product: Redhat Keycloak
CVE-2025-8419Same product: Redhat Keycloak
CVE-2024-1722Same product: Redhat Keycloak
CVE-2024-3623Same vendor: Redhat
CVE-2024-3622Same vendor: Redhat
CVE-2026-0871Same product: Redhat Keycloak
CVE-2025-12150Same product: Redhat Keycloak
CVE-2024-7260Same product: Redhat Keycloak
CVE-2023-6927Same product: Redhat Keycloak

Affected Assets

redhat
keycloak
22.0.2

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.

addresses: CWE-319

Role-based training covers secure transmission methods, mitigating cleartext transmission of sensitive data.

addresses: CWE-319

By requiring documented security controls for information exchanges, the control reduces the risk of cleartext transmission of sensitive data.

addresses: CWE-319

Mapping transmission actions in data flows helps prevent cleartext transmission of sensitive information.

addresses: CWE-319

Settings can enforce secure transmission protocols to prevent cleartext transmission of sensitive data.

addresses: CWE-319

Policy addresses secure transport and handling of media to avoid cleartext transmission of sensitive information.

addresses: CWE-319

Enforces safeguards against cleartext transmission of CUI when data leaves organizational boundaries to external systems.

addresses: CWE-319

Explicit controls and continuous oversight on external system services prevent cleartext transmission of sensitive information over provider-managed channels.

addresses: CWE-319

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.

PR.DS-02 full match
blocks

Encryption of data-in-transit directly prevents cleartext transmission while the control also addresses integrity and availability.

PR.DS-01 mostly match
blocks

Encryption and hashing of data-at-rest directly prevent plaintext password storage in files.

PR.AA-01 partial match
blocks

Credential management practices normally include secure storage requirements for passwords.

PR.DS-10 partial match
blocks

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.

removes

A.5.17 mandates that passwords be stored in protected form, so implementing it removes existing plaintext storage.

removes

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.

blocks

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).

finds

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.

blocks

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.

blocks

Mandating cryptographic protection and stronger authentication on public networks stops the transmission of plaintext sensitive information.

References