NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-9162: Keycloak Potential Variable Reference in Model Storage Services

mediumCVSS 3.1 4.9GHSA-8hxp-qmph-w5gq

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.

Published Oct 8, 2025 · Updated Oct 10, 2025

Affected packages

org.keycloak:keycloak-model-storage-services

Ecosystem
Maven
Affected
< 26.2.9
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-model-storage-services

org.keycloak:keycloak-model-storage-services

Ecosystem
Maven
Affected
>= 26.3.0, < 26.3.4
Fixed in
26.3.4
Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-model-storage-services

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to Ankush-Pathak.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology