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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Keycloak | keycloak | < 26.3.4 | 26.3.4 |
| Red Hat | Red Hat build of Keycloak 26.0 | — | — |
| Red Hat | Red Hat build of Keycloak 26.2 | — | — |
| Red Hat | Red Hat build of Keycloak 26.2.9 | — | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-model-storage-services | all versions | — | GHSA-8hxp-qmph-w5gq |
| Maven | org.keycloak:keycloak-model-storage-services | >= 26.3.0, < 26.3.4 | 26.3.4 | GHSA-8hxp-qmph-w5gq |
Advisories 1
- WID-SEC-2025-1892 Keycloak: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Sep 22, 2025
References
- RHSA-2025:15336 vendor-advisory
- RHSA-2025:15337 vendor-advisory
- RHSA-2025:15338 vendor-advisory
- RHSA-2025:15339 vendor-advisory
- RHSA-2025:16399 vendor-advisory
- RHSA-2025:16400 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-9162 vdb-entry
- RHBZ#2389396 issue-tracking