CVE-2025-9162
Java vulnerability analysis and mitigation

Overview

CVE-2025-9162 is a security vulnerability discovered in org.keycloak/keycloak-model-storage-service. The vulnerability was disclosed on August 21, 2025, and affects the KeycloakRealmImport custom resource functionality. This vulnerability involves the substitution of placeholders within imported realm documents that can reference environment variables (NVD CVE).

Technical details

The vulnerability exists in the KeycloakRealmImport custom resource's placeholder substitution mechanism. When processing imported realm documents, the system substitutes placeholders that can reference environment variables, creating a potential vector for injection attacks. The vulnerability has been assigned a CVSS v3.1 base score of 4.9 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N. The weakness has been categorized as CWE-526 (Exposure of Sensitive Information Through Environmental Variables) (NVD CVE).

Impact

The vulnerability allows attackers to inject malicious content during the realm import procedure, which can lead to unintended consequences within the Keycloak environment. The primary impact is related to confidentiality, as indicated by the CVSS metrics showing high confidentiality impact but no impact on integrity or availability (NVD CVE).

Mitigation and workarounds

The vulnerability is currently under investigation by Red Hat Product Security. At present, no official mitigation strategies or workarounds have been published (Red Hat CVE).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management