CVE-2025-11537
Java vulnerability analysis and mitigation

Overview

CVE-2025-11537 is an information disclosure vulnerability in Keycloak (keycloak-quarkus-server) where verbose logging patterns expose sensitive HTTP headers — including Authorization and Cookie — in cleartext log files. The flaw affects versions of org.keycloak:keycloak-quarkus-server prior to 26.5.6 and was published on February 10, 2026. It carries a CVSS v3.1 base score of 5.0 (Medium), requiring local access, low privileges, and user interaction (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-117 (Improper Output Neutralization for Logs): when Keycloak's logging format is set to a verbose, user-supplied pattern — such as the pre-defined long pattern — the HTTP access log includes full request headers without sanitization or masking. This causes sensitive headers like Authorization (bearing OAuth2/OIDC bearer tokens) and Cookie (containing session identifiers) to be written to log files in plaintext. Exploitation requires that an attacker already has read access to the Keycloak server's log files, and that an administrator has configured a verbose logging pattern (GitHub Advisory, Red Hat Bugzilla).

Impact

An attacker with read access to Keycloak log files can extract bearer tokens and session cookies logged in cleartext, then replay these credentials to impersonate legitimate users and achieve full account compromise. Because Keycloak acts as a central identity provider for many downstream applications, credential theft from logs could enable unauthorized access to all Keycloak-protected resources across an organization. Integrity and availability are not directly impacted; the primary risk is high confidentiality loss (GitHub Advisory).

Exploitation steps

  1. Identify target configuration: Confirm that the Keycloak instance is running with a verbose logging pattern (e.g., the long pattern) by reviewing server configuration files or documentation at https://www.keycloak.org/server/logging#_change_log_formatpattern.
  2. Gain log file read access: Obtain read access to Keycloak's HTTP access log files through insider access, a misconfigured file permission, a compromised service account, or another vulnerability that allows file system access.
  3. Extract sensitive headers: Search log files for lines containing Authorization: Bearer <token> or Cookie: <session_id> entries written by the verbose logging pattern.
  4. Replay credentials: Use the extracted bearer token or session cookie in crafted HTTP requests (e.g., via curl or a browser developer tool) to authenticate as the victim user against Keycloak or any downstream application protected by the same identity provider.
  5. Achieve account compromise: With a valid session, perform actions on behalf of the impersonated user, access protected resources, or escalate privileges within the Keycloak-managed environment (GitHub Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Logs: Keycloak HTTP access log entries containing Authorization: Bearer or Cookie: header values in plaintext when the long or other verbose logging pattern is active.
  • File System: Unexpected access or modification timestamps on Keycloak log files (e.g., /var/log/keycloak/ or application-specific log directories) by non-administrative accounts.
  • Logs: Authentication events in Keycloak audit logs showing logins from unusual IP addresses or user agents immediately following periods when log files were accessed.
  • Network: Outbound requests using bearer tokens or session cookies originating from IP addresses not associated with the legitimate user's known locations, potentially indicating token replay attacks.

Mitigation and workarounds

Patched versions are available: 26.4.11, 26.5.6, and 26.6.0 — upgrading to any of these releases is the recommended remediation (GitHub Advisory). As an immediate workaround, administrators should review and change the Keycloak logging format away from verbose patterns (such as long) that include full HTTP headers; the Keycloak logging documentation provides guidance on configuring log format/pattern. Additionally, restrict read access to Keycloak log files to only authorized administrative accounts, and consider implementing log filtering or masking to prevent sensitive headers from being written to disk in cleartext.

Community reactions

The vulnerability was reported internally via Red Hat's OSIDB system in October 2025 and publicly disclosed in February 2026 (Red Hat Bugzilla). A brief technical write-up was published by Infinit Security covering the nature of the header exposure (Infinit Security). No significant broader media coverage or notable researcher commentary beyond standard vulnerability database entries has been observed.

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p279-2cqp-84jgCRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesJul 24, 2026
GHSA-fp43-vj7g-pg92HIGH7.5
  • Java logoJava
  • org.omnifaces:omnifaces
NoYesJul 24, 2026
GHSA-7ppr-r889-mcf2HIGH7.5
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.12
NoYesJul 24, 2026
GHSA-mhvj-jhpq-885vHIGH7.4
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.13
NoYesJul 24, 2026
GHSA-46q4-43ph-c6frHIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.12
NoYesJul 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management