5.0medium
Keycloak-services: sensitive headers shown in the http access logs
- Severity
- 5.0medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-gv3v-2cpp-3pmq
Description
A flaw was found in Keycloak. When the logging format is configured to a verbose, user-supplied pattern (such as the pre-defined 'long' pattern), sensitive headers including Authorization and Cookie are disclosed to the logs in cleartext. An attacker with read access to the log files can extract these credentials (e.g., bearer tokens, session cookies) and use them to impersonate users, leading to a full account compromise.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Red Hat Red Hat build of Keycloak 26.4.2 | Not specified | CVE List |
| rhbk/keycloak-rhel9 | Not specified | CVE List |
| org.keycloak:keycloak-quarkus-server (Maven) | before 26.5.6 | GitHub Advisory Database |
All scores
| redhat | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A flaw was found in Keycloak. When the logging format is configured to a verbose, user-supplied pattern (such as the pre-defined 'long' pattern), sensitive headers including Authorization and Cookie are disclosed to the logs in cleartext. An attacker with read access to the log files can extract these credentials (e.g., bearer tokens, session cookies) and use them to impersonate users, leading to a full account compromise.
GitHub Advisory Database
A flaw was found in Keycloak. When the logging format is configured to a verbose, user-supplied pattern (such as the pre-defined 'long' pattern), sensitive headers including Authorization and Cookie are disclosed to the logs in cleartext. An attacker with read access to the log files can extract these credentials (e.g., bearer tokens, session cookies) and use them to impersonate users, leading to a full account compromise.
Patches are available, see:
NVD (es)
Se encontró un fallo en Keycloak. Cuando el formato de registro se configura a un patrón detallado, proporcionado por el usuario (como el patrón 'long' predefinido), los encabezados sensibles, incluyendo Autorización y Cookie, se divulgan en los registros en texto claro. Un atacante con acceso de lectura a los archivos de registro puede extraer estas credenciales (por ejemplo, tokens de portador, cookies de sesión) y usarlas para suplantar a los usuarios, lo que lleva a un compromiso total de la cuenta.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-11537 changed 2026-10-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gv3v-2cpp-3pmq changed 2026-10-30 | CC-BY-4.0 |
| NVD | CVE-2025-11537 changed 2026-10-30 | Public domain |