CVE-2025-9162: Keycloak
Medium severity, CVSS 4.9. EPSS: 0.5% chance of exploitation in the next 30 days.
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
- Keycloak Keycloak: before 26.3.4 (fixed in 26.3.4)
- Red Hat Red Hat Build Of Keycloak 26.0: before 26.0.15-1 (fixed in 26.0.15-1); before 26.0-18 (fixed in 26.0-18); before 26.0-19 (fixed in 26.0-19)
- Red Hat Red Hat Build Of Keycloak 26.2: before 26.2.8-1 (fixed in 26.2.8-1); before 26.2-8 (fixed in 26.2-8); before 26.2.9-1 (fixed in 26.2.9-1); before 26.2-9 (fixed in 26.2-9)
- Red Hat Red Hat Build Of Keycloak 26.2.9
Published 2025-08-21. Last modified 2026-06-17.