VDB
Sign up
MEDIUM5.9

GHSA-v7gv-xpgf-6395

Keycloak Build Process Exposes Sensitive Data

Quick fix

GHSA-v7gv-xpgf-6395 — org.keycloak:keycloak-quarkus-server: upgrade to the fixed version with the command below.

# pom.xml: bump <version>24.0.9</version> for org.keycloak:keycloak-quarkus-server

Details

A flaw was found in Keycloak. This issue occurs because sensitive runtime values, such as passwords, may be captured during the Keycloak build process and embedded as default values in bytecode, leading to unintended information disclosure. In Keycloak 26, sensitive data specified directly in environment variables during the build process is also stored as a default values, making it accessible during runtime. Indirect usage of environment variables for SPI options and Quarkus properties is also vulnerable due to unconditional expansion by PropertyMapper logic, capturing sensitive data as default values in all Keycloak versions up to 26.0.2.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.keycloak:keycloak-quarkus-server
Introduced in: 0Fixed in: 24.0.9
Fix# pom.xml: bump <version>24.0.9</version> for org.keycloak:keycloak-quarkus-server
Maven/org.keycloak:keycloak-quarkus-server
Introduced in: 25.0.0Fixed in: 26.0.6
Fix# pom.xml: bump <version>26.0.6</version> for org.keycloak:keycloak-quarkus-server

References