All reports
Medium

Keycloak Potential Variable Reference in Model Storage Services

Affected versions

Affected versions
>= 26.3.0, < 26.3.4
Fixed version
26.3.4
Affected versions
< 26.2.9
Fixed version
Not reported

Exploitation

CVE-2025-9162

Probability of exploitation in the next 30 days: 0.61%

FIRST EPSS · 2026-11-23

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.

Links

Credits

  • Ankush-Pathak