What’s Vulnerable › Vulnerabilities

CVE-2025-9162: Org.keycloak/keycloak-model-storage-service: variable injection into environment variables

Description

A flaw was found in org.keycloak/keycloak-model-storage-service. The KeycloakRealmImport custom resource substitutes placeholders within imported realm documents, potentially referencing environment variables. This substitution process allows for injection attacks when crafted realm documents are processed. An attacker can leverage this to inject malicious content during the realm import procedure. This can lead to unintended consequences within the Keycloak environment.

Affected products

How to fix

Upgrade to a fixed version: Red Hat build of Keycloak 26.4 26.0-18, 26.0-19, 26.0.15-1, 26.2-8; Keycloak 26.3.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-9162 or the next vulnerability affects your stack