REDHAT-BUG-2501737: Medium severity Keycloak Keycloak vulnerability
An Information Exposure vulnerability was found in the GET /admin/realms/{realm}/authentication/config/{id} endpoint of Keycloak. The root cause is located in the ModelToRepresentation.toRepresentation method, which copies the configuration map without filtering or masking entries marked as secret in the provider metadata. Consequently, an authenticated user with the view-realm role can retrieve raw secret values, such as secret.key for reCAPTCHA and api.key for reCAPTCHA Enterprise. Additionally, these unmasked secrets are serialized into admin events, making them visible to any user with permission to read administrative logs. An attacker can use these secrets to undermine the integrity of bot-detection mechanisms in the affected realm.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2501737?
The severity of REDHAT-BUG-2501737 is medium, rated at 4.
How do I fix REDHAT-BUG-2501737?
To fix REDHAT-BUG-2501737, ensure that your configuration maps in Keycloak filter or mask entries marked as secret.
What does REDHAT-BUG-2501737 expose?
REDHAT-BUG-2501737 exposes sensitive information through the GET /admin/realms/{realm}/authentication/config/{id} endpoint in Keycloak.
What is the impact of REDHAT-BUG-2501737?
The impact of REDHAT-BUG-2501737 is potential information exposure of sensitive configuration data to unauthorized users.
What software is affected by REDHAT-BUG-2501737?
The software affected by REDHAT-BUG-2501737 is Keycloak.