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-2020-27838

CVE-2020-27838: Keycloak Information Disclosure Flaw

CVE-2020-27838 is an information disclosure vulnerability in Red Hat Keycloak that exposes client secrets through unauthenticated endpoints. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-27838 Overview

A significant information disclosure vulnerability was discovered in Red Hat Keycloak, an open-source identity and access management solution. The flaw exists in the client registration endpoint, which allows unauthenticated users to fetch sensitive information about PUBLIC clients, including client secrets. This becomes particularly problematic when a PUBLIC client is later reconfigured as a CONFIDENTIAL client, as the previously exposed secret may still be valid and accessible to attackers.

Critical Impact

Unauthenticated attackers can retrieve client secrets from PUBLIC clients, potentially enabling unauthorized access if clients are later upgraded to CONFIDENTIAL status without secret rotation.

Affected Products

  • Red Hat Keycloak versions prior to 13.0.0
  • Red Hat Single Sign-On 7.0

Discovery Timeline

  • 2021-03-08 - CVE-2020-27838 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-27838

Vulnerability Analysis

This vulnerability is classified as an Authentication Bypass issue (CWE-287: Improper Authentication). The core problem lies in the client registration endpoint's failure to enforce proper authentication when handling requests for PUBLIC client information.

In OAuth 2.0 and OpenID Connect implementations, clients are categorized as either PUBLIC (unable to maintain the confidentiality of their credentials) or CONFIDENTIAL (capable of maintaining credential confidentiality). Keycloak's client registration endpoint is designed to manage these client configurations, but the vulnerable versions fail to restrict access to PUBLIC client data.

The vulnerability poses a significant risk because:

  1. Initial Exposure: When a client is registered as PUBLIC, its configuration data (including any associated secrets) can be retrieved without authentication
  2. Persistence of Risk: If an administrator later changes the client type from PUBLIC to CONFIDENTIAL, the previously exposed client secret remains unchanged
  3. Authentication Compromise: An attacker who captured the client secret during the PUBLIC phase can use it to impersonate the now-CONFIDENTIAL client

Root Cause

The root cause of this vulnerability is improper authentication enforcement in the client registration endpoint. The endpoint fails to validate that incoming requests are properly authenticated before returning sensitive client configuration data, including client secrets, for PUBLIC clients.

Attack Vector

The attack vector is network-based, requiring no prior authentication. An attacker can exploit this vulnerability by making direct HTTP requests to the Keycloak client registration endpoint. The attack requires user interaction in the form of an administrator changing a client from PUBLIC to CONFIDENTIAL without rotating the client secret.

The exploitation process involves:

  1. An attacker identifies the Keycloak server and enumerates registered PUBLIC clients
  2. The attacker makes unauthenticated requests to the client registration endpoint to retrieve client configuration, including secrets
  3. If a PUBLIC client is later promoted to CONFIDENTIAL status, the attacker can use the previously captured credentials to impersonate the client

For technical details on the vulnerability mechanism, refer to the Red Hat Bug Report #1906797.

Detection Methods for CVE-2020-27838

Indicators of Compromise

  • Unusual or repeated unauthenticated requests to the /auth/realms/{realm}/clients-registrations/ endpoint
  • Access logs showing enumeration patterns against client registration endpoints
  • Unexpected authentication attempts using previously PUBLIC client credentials
  • Evidence of client configuration data being retrieved by unknown IP addresses

Detection Strategies

  • Monitor access logs for unauthenticated GET requests to the client registration endpoint
  • Implement alerting on high volumes of requests to client registration APIs from single sources
  • Audit client type changes from PUBLIC to CONFIDENTIAL and verify secret rotation occurred
  • Review authentication logs for suspicious client authentication attempts post-configuration changes

Monitoring Recommendations

  • Enable detailed access logging for all Keycloak administrative endpoints
  • Implement rate limiting on the client registration endpoint to detect enumeration attempts
  • Set up alerts for any client type modifications in the Keycloak admin console
  • Deploy network-level monitoring to detect reconnaissance activity against identity infrastructure

How to Mitigate CVE-2020-27838

Immediate Actions Required

  • Upgrade Red Hat Keycloak to version 13.0.0 or later immediately
  • Audit all existing clients that were previously configured as PUBLIC and have been changed to CONFIDENTIAL
  • Rotate client secrets for any clients that have transitioned from PUBLIC to CONFIDENTIAL status
  • Review access logs for any historical evidence of unauthorized client registration endpoint access

Patch Information

Red Hat has addressed this vulnerability in Keycloak version 13.0.0 and later. Organizations using Red Hat Single Sign-On should apply the corresponding security updates. Detailed patch information and updates are available through the Red Hat Bug Report #1906797.

Workarounds

  • Implement network-level access controls to restrict access to the client registration endpoint
  • Configure a web application firewall (WAF) to require authentication for all client registration requests
  • Establish a policy requiring immediate secret rotation whenever a client type is changed from PUBLIC to CONFIDENTIAL
  • Consider disabling the client registration endpoint if dynamic client registration is not required for your deployment
bash
# Configuration example - Restrict client registration endpoint via reverse proxy (nginx)
# Add to nginx configuration for Keycloak
location ~ ^/auth/realms/.*/clients-registrations/ {
    # Require authentication or restrict to internal networks
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
}

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

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability82.52%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-287
  • Vendor Resources
  • Red Hat Bug Report #1906797
  • Related CVEs
  • CVE-2023-4918: 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