CVE-2023-4918: Keycloak Core - Plaintext Storage of User Password

org.keycloak:keycloak-core Updated 02 Oct 2025

Summary

12/09/2023
Yes i
High
8.8

CVE-2023-4918: Keycloak vulnerable to Plaintext Storage of User Password. Affects org.keycloak:keycloak-core versions >= 22.0.2, < 22.0.3. Fixed in 22.0.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Keycloak Core is a package that provides authentication and authorization services for applications. It is commonly used to secure web applications and APIs. The package allows users to register themselves through a registration flow, where they provide their personal information, including a password. However, a flaw in the package allows the passwords of self-registered users to be stored in plaintext as attributes associated with the user. This means that any entity with proper rights or roles can retrieve the passwords in clear-text format.

Vulnerability Detail

The vulnerability in Keycloak Core allows passwords for self-registered users to be stored as cleartext attributes associated with the user. This means that any entity with the necessary rights or roles can access and retrieve the passwords in plain text. The impact of this vulnerability is significant as it exposes sensitive user information and compromises the security of the application. The vulnerability has a CVSS score of 8.8, indicating a high severity level.

How To Fix

Latest published version: 26.8.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

22.0.3

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. Disabling self-registration is the recommended approach until a patched version is available.

Conclusion

The vulnerability in Keycloak Core allows passwords for self-registered users to be stored in plaintext, compromising the security of the application. To mitigate this vulnerability, it is recommended to disable self-registration and update to a patched version of Keycloak Core. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for org.keycloak:keycloak-core →

Share this vulnerability

FAQ

The impact of this vulnerability is significant as it allows any entity with proper rights or roles to retrieve user passwords in clear-text format. This compromises the security of the application and exposes sensitive user information.

To mitigate this vulnerability, it is recommended to disable self-registration for users in all realms until a patched version of Keycloak Core is available. This will prevent new users from registering and storing their passwords in plaintext.

As of the latest information, the fixed version for Keycloak Core is 22.0.3. It is important to update to this version or any subsequent fixed versions to ensure the security of user passwords.

Yes, existing users' passwords can be compromised if an entity with proper rights or roles retrieves the passwords in clear-text format. It is important to take immediate action to mitigate this vulnerability and update to a patched version of Keycloak Core.

Related vulnerabilities

Recent vulnerabilities recorded for org.keycloak:keycloak-core.

How To Fix

Latest published version: 26.8.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

22.0.3

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback