The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-4918

CVE-2023-4918: Keycloak Information Disclosure Flaw

CVE-2023-4918 is an information disclosure vulnerability in Red Hat Keycloak that exposes user passwords in clear text through user attributes. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2023-4918 Overview

A critical flaw was discovered in the Red Hat Keycloak package, specifically within the org.keycloak.userprofile component. When users register through the registration flow, the "password" and "password-confirm" form fields are incorrectly stored as regular user attributes. This design flaw allows any user or client with proper rights and roles to read user attributes, enabling a malicious actor with minimal access to retrieve user passwords in cleartext and potentially compromise the entire authentication environment.

Critical Impact

User passwords are exposed in cleartext as user attributes, allowing attackers with minimal access to harvest credentials and compromise user accounts across the Keycloak instance.

Affected Products

  • Red Hat Keycloak 22.0.2
  • Red Hat Keycloak (other versions may be affected)

Discovery Timeline

  • September 12, 2023 - CVE-2023-4918 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-4918

Vulnerability Analysis

This vulnerability represents a significant security flaw in Keycloak's user registration flow handling. The org.keycloak.userprofile component fails to properly sanitize and isolate sensitive credential fields during user registration. Instead of treating password fields as protected credential data with appropriate handling, the system erroneously persists these values as standard user attributes accessible through the user profile API.

The vulnerability is classified under CWE-256 (Unprotected Storage of Credentials) and CWE-319 (Cleartext Transmission of Sensitive Information), indicating both storage and potential transmission security failures. Any authenticated user or OAuth client with user read permissions can enumerate and retrieve these exposed password attributes, effectively bypassing Keycloak's credential protection mechanisms entirely.

Root Cause

The root cause lies in the user registration form processing logic within the org.keycloak.userprofile package. The registration handler does not properly distinguish between credential fields ("password", "password-confirm") and regular user profile attributes. This results in the password values being stored in the user attributes data structure rather than being routed through the secure credential storage system designed to hash and protect sensitive authentication data.

Attack Vector

This vulnerability is exploitable over the network by authenticated attackers with low privileges. An attacker who has registered an account and obtained basic API access permissions can query the user management APIs to enumerate user attributes. By targeting newly registered users or iterating through the user base, the attacker can extract cleartext passwords from the exposed attributes.

The attack sequence involves:

  1. Attacker registers or obtains a low-privilege account in the Keycloak realm
  2. Attacker obtains an access token with user read permissions (often available to regular clients)
  3. Attacker queries the Admin REST API or user profile endpoints to retrieve user attributes
  4. Password values stored as attributes are returned in the API response
  5. Attacker harvests credentials for account takeover or lateral movement

Detection Methods for CVE-2023-4918

Indicators of Compromise

  • Unusual API calls to user profile or admin endpoints requesting user attributes
  • Bulk user enumeration activity from unexpected sources
  • Access token requests with elevated user read scopes from untrusted clients
  • Audit logs showing repeated access to user attribute data across multiple users

Detection Strategies

  • Monitor Keycloak audit logs for excessive user attribute read operations
  • Implement alerting on bulk user enumeration patterns via the Admin REST API
  • Review OAuth client configurations for overly permissive user read scopes
  • Audit user attributes in the database for presence of password-related fields
  • Deploy network monitoring to detect unusual data exfiltration from Keycloak endpoints

Monitoring Recommendations

  • Enable comprehensive audit logging in Keycloak for all user attribute access events
  • Configure SIEM rules to correlate user enumeration with subsequent authentication anomalies
  • Implement rate limiting on user profile API endpoints
  • Regularly audit stored user attributes for sensitive data exposure

How to Mitigate CVE-2023-4918

Immediate Actions Required

  • Upgrade Keycloak to the latest patched version immediately
  • Audit existing user accounts for exposed password attributes in the database
  • Force password resets for all users who registered while the vulnerable version was active
  • Review and restrict OAuth client permissions for user attribute access
  • Implement additional access controls on the Admin REST API

Patch Information

Red Hat has released security updates to address this vulnerability. Administrators should apply the latest Keycloak version that includes the fix for CVE-2023-4918. Detailed patch information is available through the Red Hat CVE-2023-4918 Advisory and the GitHub Keycloak Security Advisory. The Red Hat Bug Report #2238588 provides additional technical details on the fix.

Workarounds

  • Restrict access to the Admin REST API to only trusted administrative accounts
  • Remove or limit OAuth client permissions that allow reading user attributes
  • Implement network segmentation to restrict access to Keycloak management interfaces
  • Deploy a Web Application Firewall (WAF) to monitor and block suspicious API access patterns
  • Manually clean exposed password attributes from the user database if immediate patching is not possible
bash
# Audit user attributes for exposed passwords (example database query)
# Run this against your Keycloak database to identify affected users
# SELECT u.username, ua.name, ua.value 
# FROM user_entity u 
# JOIN user_attribute ua ON u.id = ua.user_id 
# WHERE ua.name IN ('password', 'password-confirm');

# After patching, force password reset for affected users via Keycloak Admin CLI
kcadm.sh update users/{user-id} -r {realm} -s 'requiredActions=["UPDATE_PASSWORD"]'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechRedhat Keycloak

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-256

  • CWE-319
  • Vendor Resources
  • Red Hat CVE-2023-4918 Advisory

  • Red Hat Bug Report #2238588

  • GitHub Keycloak Security Advisory
  • Related CVEs
  • CVE-2020-27838: Keycloak Information Disclosure Flaw

  • CVE-2023-0091: Redhat Keycloak Auth Bypass Vulnerability

  • CVE-2023-0105: Redhat Keycloak Auth Bypass Vulnerability

  • CVE-2022-3782: Keycloak Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English