CVE-2025-9162

published 21 Aug 2025 · updated 19 Dec 2025

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

4.9MediumCVSS 4.9EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 26.3.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Keycloak<26.3.426.3.4
Red HatBuild of Keycloak

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-9162 severity on Zeptric[![CVE-2025-9162](https://zeptric.io/badge/cve/CVE-2025-9162.svg)](https://zeptric.io/cve/CVE-2025-9162)