CVE-2025-9162: Keycloak
Medium severity, CVSS 4.9. EPSS: 0.9% probability of exploitation activity 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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Keycloak, before 26.3.4: fixed in 26.3.4
- Red Hat Build Of Keycloak 26.0, before 26.0.15-1: fixed in 26.0.15-1
- Red Hat Build Of Keycloak 26.0, before 26.0-18: fixed in 26.0-18
- Red Hat Build Of Keycloak 26.0, before 26.0-19: fixed in 26.0-19
- Red Hat Build Of Keycloak 26.2, before 26.2.8-1: fixed in 26.2.8-1
- Red Hat Build Of Keycloak 26.2, before 26.2-8: fixed in 26.2-8
- Red Hat Build Of Keycloak 26.2, before 26.2.9-1: fixed in 26.2.9-1
- Red Hat Build Of Keycloak 26.2, before 26.2-9: fixed in 26.2-9
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
Affected packages
Published 2025-08-21. Last modified 2026-06-17.