Medium severity4.9GHSA Advisory· Published Aug 21, 2025· Updated Apr 15, 2026
CVE-2025-9162
CVE-2025-9162
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.keycloak:keycloak-model-storage-servicesMaven | >= 0 | — |
org.keycloak:keycloak-model-storage-servicesMaven | >= 26.3.0, < 26.3.4 | 26.3.4 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
12- github.com/advisories/GHSA-8hxp-qmph-w5gqghsaADVISORY
- access.redhat.com/errata/RHSA-2025:15336nvdWEB
- access.redhat.com/errata/RHSA-2025:15337nvdWEB
- access.redhat.com/errata/RHSA-2025:15338nvdWEB
- access.redhat.com/errata/RHSA-2025:15339nvdWEB
- access.redhat.com/errata/RHSA-2025:16399nvdWEB
- access.redhat.com/errata/RHSA-2025:16400nvdWEB
- access.redhat.com/security/cve/CVE-2025-9162nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/keycloak/keycloak/blob/26.3.3/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.javaghsaWEB
- github.com/keycloak/keycloak/blob/75afda410495a9576e00edc3277ab42ca155f806/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.javaghsaWEB
- github.com/keycloak/keycloak/security/advisories/GHSA-8hxp-qmph-w5gqghsaWEB
News mentions
0No linked articles in our index yet.