CVE-2025-9162
Fixed in a distro release EPSS <1%CVSS 4.9
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.
Products: keycloak, Red Hat build of Keycloak 26.0, Red Hat build of Keycloak 26.2, Red Hat build of Keycloak 26.2.9
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Maven | org.keycloak:keycloak-model-storage-services | no fix |
| Maven | org.keycloak:keycloak-model-storage-services | 26.3.4 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | keycloak-26.2 | no fix |
| Chainguard | keycloak-26.2 | 26.2.5-r6 |
| Chainguard | keycloak-26.2-compat | 26.2.5-r6 |
| Chainguard | keycloak-26.2-iamguarded-compat | no fix |
| Chainguard | keycloak-26.3 | 26.3.5-r3 |
| Chainguard | keycloak-26.3-compat | 26.3.5-r3 |
| Chainguard | keycloak-26.3-iamguarded-compat | 26.3.5-r3 |
| Chainguard | keycloak-fips-26.2-iamguarded-fips | no fix |
| Chainguard | keycloak-fips-26.3 | 26.3.5-r4 |
| Chainguard | keycloak-fips-26.3-iamguarded-fips | 26.3.5-r4 |
| Chainguard | keycloak-fips-26.3-operator | 26.3.5-r4 |
| Chainguard | keycloak-fips-26.3-operator-compat | 26.3.5-r4 |
| Wolfi | keycloak-26.3 | 26.3.5-r3 |
| Wolfi | keycloak-26.3-compat | 26.3.5-r3 |
| Wolfi | keycloak-26.3-iamguarded-compat | 26.3.5-r3 |