GHSA-8hxp-qmph-w5gq

Keycloak Potential Variable Reference in Model Storage Services

At a glance

Published
Updated
CVE
CVE-2025-9162
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

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

PackageVersions
Maven · org.keycloak:keycloak-model-storage-servicesintroduced 0
Maven · org.keycloak:keycloak-model-storage-servicesintroduced 26.3.0, fixed 26.3.4

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database