CVE-2025-9162Org.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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| build keycloak | 26.0 | — | |
| build keycloak | 26.2 | — | |
| Keycloak | keycloak | < 26.3.4 | |
| Red Hat | Red Hat build of Keycloak 26.0 | all versions | |
| Red Hat | Red Hat build of Keycloak 26.2 | all versions | |
| Red Hat | Red Hat build of Keycloak 26.2.9 | — |
References and patches
- 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