CVE-2025-9162 Details
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.
A vulnerability exists in the Keycloak Model Storage Service, specifically within the KeycloakRealmImport custom resource. This issue arises because the import process replaces placeholders in realm documents, which can potentially reference environment variables. Such substitution creates an opportunity for injection attacks, allowing malicious content to be introduced during the realm import. As a result, sensitive environment variables, like the database password, could be compromised, leading to unintended consequences in the Keycloak environment.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 21, 2025CISA-ADP
Assessed Aug 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-526 | Cleartext Storage of Sensitive Information in an Environment Variable | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| org.keycloak/keycloak-model-storage-service | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 22, 2025 | CVE Modified | [email protected] |
| Sep 4, 2025 | CVE Modified | [email protected] |
| Aug 21, 2025 | New CVE Received | [email protected] |
Volerion