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.
Problem types
Cleartext Storage of Sensitive Information in an Environment Variable
Product status
26.0.15-1 before *
26.0-18 before *
26.0-19 before *
26.2.8-1 before *
26.2-8 before *
26.2-8 before *
26.2.9-1 before *
26.2-9 before *
26.2-9 before *
Timeline
2025-08-19: | Reported to Red Hat. |
2025-08-19: | Made public. |
References
access.redhat.com/errata/RHSA-2025:15336 (RHSA-2025:15336)
access.redhat.com/errata/RHSA-2025:15337 (RHSA-2025:15337)
access.redhat.com/errata/RHSA-2025:15338 (RHSA-2025:15338)
access.redhat.com/errata/RHSA-2025:15339 (RHSA-2025:15339)
access.redhat.com/errata/RHSA-2025:16399 (RHSA-2025:16399)
access.redhat.com/errata/RHSA-2025:16400 (RHSA-2025:16400)
access.redhat.com/security/cve/CVE-2025-9162
bugzilla.redhat.com/show_bug.cgi?id=2389396 (RHBZ#2389396)