ADVISORIES

GitHub Advisory Database

GHSA-8hxp-qmph-w5gq

Keycloak Potential Variable Reference in Model Storage Services

Moderate CVE-2025-9162

Details

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

EcosystemPackageAffected versions
Mavenorg.keycloak:keycloak-model-storage-services
All versions, no fix listed
Mavenorg.keycloak:keycloak-model-storage-services
From 26.3.0 before 26.3.4 (fixed in 26.3.4)

References