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-1664

CVE-2023-1664: Quarkus Keycloak Information Disclosure Flaw

CVE-2023-1664 is an information disclosure vulnerability in Redhat Build Of Quarkus affecting Keycloak certificate validation. Attackers can exploit misconfigured truststore settings to bypass certificate checks. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published: January 28, 2026

CVE-2023-1664 Overview

A certificate validation bypass vulnerability was discovered in Red Hat Keycloak, an open-source identity and access management solution. This flaw occurs when the non-default "Revalidate Client Certificate" configuration option is enabled while the reverse proxy fails to properly validate certificates before passing them to Keycloak. When combined with a missing or misconfigured KC_SPI_TRUSTSTORE_FILE_FILE variable, an attacker can present arbitrary certificates that may be accepted by the server.

Critical Impact

Attackers can bypass client certificate validation in specific misconfigurations, potentially compromising the integrity and confidentiality of consumer applications relying on Keycloak for authentication.

Affected Products

  • Red Hat Keycloak
  • Red Hat Single Sign-On 7.0
  • Red Hat Build of Quarkus
  • Red Hat JBoss A-MQ 7
  • Red Hat Migration Toolkit for Runtimes

Discovery Timeline

  • 2023-05-26 - CVE-2023-1664 published to NVD
  • 2025-01-15 - Last updated in NVD database

Technical Details for CVE-2023-1664

Vulnerability Analysis

This vulnerability represents an Improper Certificate Validation flaw (CWE-295) in Keycloak's client certificate handling mechanism. The issue manifests under a specific set of conditions: when the "Revalidate Client Certificate" option is enabled, and a reverse proxy upstream of Keycloak does not perform its own certificate validation. In this scenario, Keycloak becomes the sole point of certificate verification.

The core problem occurs when the KC_SPI_TRUSTSTORE_FILE_FILE environment variable is either missing or incorrectly configured. Without a properly configured truststore, Keycloak cannot validate the certificate chain, yet it may still accept connections. The system logs a warning message: "Cannot validate client certificate trust: Truststore not available" — however, this does not prevent the potentially unauthorized access.

While the attacker cannot directly access the Keycloak server itself through this vulnerability, the bypass of certificate validation can affect downstream consumer applications that trust Keycloak's authentication decisions, potentially compromising their integrity and confidentiality.

Root Cause

The root cause stems from improper error handling in Keycloak's certificate validation logic when the truststore is unavailable. Instead of failing closed (denying access when validation cannot be performed), the system fails open under certain configurations, allowing connections to proceed despite being unable to verify the client certificate's authenticity. This design flaw violates the principle of secure defaults and fail-safe behavior.

Attack Vector

The attack requires network access and targets the mutual TLS (mTLS) certificate validation process. An attacker can exploit this vulnerability by presenting a crafted or arbitrary client certificate when connecting to a Keycloak instance that meets the following conditions:

  1. The "Revalidate Client Certificate" option is enabled (non-default setting)
  2. The reverse proxy in front of Keycloak does not validate client certificates
  3. The KC_SPI_TRUSTSTORE_FILE_FILE variable is missing or misconfigured

When these conditions are met, the attacker's certificate may be accepted without proper chain-of-trust validation, allowing them to impersonate legitimate clients or gain unauthorized access to resources protected by certificate-based authentication.

Detection Methods for CVE-2023-1664

Indicators of Compromise

  • Log entries containing "Cannot validate client certificate trust: Truststore not available" in Keycloak server logs
  • Unexpected or unauthorized authentication events in access logs from untrusted certificate issuers
  • Authentication requests with certificates not issued by your organization's certificate authority
  • Anomalous login patterns from clients with unusual certificate metadata

Detection Strategies

  • Monitor Keycloak logs for truststore-related warning messages indicating validation failures
  • Implement alerting on authentication events where certificate validation was skipped or could not be completed
  • Audit configuration settings periodically to ensure KC_SPI_TRUSTSTORE_FILE_FILE is properly set
  • Deploy network monitoring to detect mTLS connections with unexpected certificate chains

Monitoring Recommendations

  • Enable verbose logging for Keycloak's certificate validation subsystem during security audits
  • Configure SIEM rules to flag any truststore-related error or warning messages
  • Establish baseline metrics for certificate-based authentication patterns and alert on deviations
  • Implement certificate transparency monitoring for any certificates claiming to represent your organization

How to Mitigate CVE-2023-1664

Immediate Actions Required

  • Verify that the KC_SPI_TRUSTSTORE_FILE_FILE environment variable is properly configured and points to a valid truststore
  • Ensure your reverse proxy (nginx, Apache, HAProxy) is configured to validate client certificates before forwarding requests to Keycloak
  • Review and disable the "Revalidate Client Certificate" option if not explicitly required by your deployment architecture
  • Audit recent authentication logs for any suspicious certificate-based access attempts

Patch Information

Red Hat has acknowledged this vulnerability. Refer to the Red Hat Bug Report #2182196 for official guidance, patch availability, and affected version details. Administrators should update to the latest patched versions of Keycloak and Red Hat Single Sign-On as they become available.

Workarounds

  • Configure your reverse proxy to perform client certificate validation, ensuring Keycloak is not the sole validation point
  • If the "Revalidate Client Certificate" feature is not required, disable it in the Keycloak configuration
  • Implement strict truststore configuration validation during deployment to prevent misconfiguration
  • Deploy network segmentation to limit exposure of Keycloak instances requiring mTLS authentication
bash
# Verify truststore configuration
# Ensure KC_SPI_TRUSTSTORE_FILE_FILE environment variable is set correctly
echo $KC_SPI_TRUSTSTORE_FILE_FILE

# Verify the truststore file exists and is readable
ls -la $KC_SPI_TRUSTSTORE_FILE_FILE

# Check truststore contents using keytool
keytool -list -keystore $KC_SPI_TRUSTSTORE_FILE_FILE -storepass <your-password>

# Verify Keycloak can access the truststore (check logs for validation errors)
grep -i "truststore" /path/to/keycloak/logs/server.log

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechKeycloak

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.24%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-295
  • Vendor Resources
  • Red Hat Bug Report #2182196
  • Related CVEs
  • CVE-2026-3190: Keycloak Information Disclosure Flaw

  • CVE-2026-4633: Keycloak User Enumeration Vulnerability

  • CVE-2026-4366: Keycloak Information Disclosure Flaw

  • CVE-2026-3911: Keycloak Information Disclosure Flaw
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