REDHAT-BUG-2501730: Medium severity Keycloak Keycloak vulnerability

Published Jul 17, 2026
·
Updated

A denial of service vulnerability was discovered in Keycloak metrics implementation. When user-event metrics are enabled, the EventMetricsProvider records the verbatim error message from failed account operations as a Prometheus metric label. The account consent endpoint specifically embeds caller-supplied input, such as nonexistent client IDs or invalid scope names, directly into these error messages. An authenticated attacker with manage-account or manage-consent permissions can exploit this by repeatedly calling the account consent delete endpoint with unique, randomized client ID values. Each request results in a distinct error message and a corresponding new Prometheus metric time series. This leads to unbounded metric cardinality, which can exhaust the memory of both the Keycloak instance and the connected monitoring system, resulting in a denial of service and degradation of metrics availability.

Affected Software

1 affected component
Keycloak Keycloak

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    If user-event metrics are enabled, disable EventMetricsProvider recording so that verbatim error messages from failed account operations are not used as Prometheus metric label values (prevents unbounded metric cardinality).

    Keycloak (account consent delete endpoint) EventMetricsProvider (user-event metrics) = disable when not required
  2. Compensating control

    Use an external control (e.g., network/WAF/ACL) to restrict access to the account consent delete endpoint so authenticated attackers with manage-account/manage-consent permissions cannot repeatedly call it with randomized client IDs.

Event History

Jul 17, 2026
Data Sourced
via Red Hat·02:26 PM
DescriptionSeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203