Skip to content
OpenAdvisories
Medium · 4.9 CVE-2025-9162 EUVD-2025-25456GHSA-8hxp-qmph-w5gqGHSA-w2wj-hw98-233h

Org.keycloak/keycloak-model-storage-service: variable injection into environment variables

Published Aug 21, 2025 · Updated Dec 19, 2025 · Assigned by redhat

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 products

VendorProductAffectedFixed
Keycloak keycloak < 26.3.4 26.3.4
Red Hat Red Hat build of Keycloak 26.0 — —
Red Hat Red Hat build of Keycloak 26.2 — —
Red Hat Red Hat build of Keycloak 26.2.9 — —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.keycloak:keycloak-model-storage-services all versions — GHSA-8hxp-qmph-w5gq
Maven org.keycloak:keycloak-model-storage-services >= 26.3.0, < 26.3.4 26.3.4 GHSA-8hxp-qmph-w5gq

Advisories 1

References