CVE-2025-9162
Org.keycloak/keycloak-model-storage-service: variable injection into environment variables
- State
- Published
- Severity
- 4.9 Medium
- Published
- Aug 21, 2025
- Updated
- Dec 19, 2025
- Reserved
- Aug 19, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.9 Medium | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N | redhat |
Weaknesses
- CWE-526 Cleartext Storage of Sensitive Information in an Environment Variable
Affected Products
| Product | Versions |
|---|---|
keycloakKeycloak |
|
Red Hat build of Keycloak 26.0Red Hat | |
Red Hat build of Keycloak 26.0Red Hat |
|
Red Hat build of Keycloak 26.0Red Hat |
|
Red Hat build of Keycloak 26.0Red Hat |
|
Red Hat build of Keycloak 26.2Red Hat | |
Red Hat build of Keycloak 26.2Red Hat |
|
Red Hat build of Keycloak 26.2Red Hat |
|
Red Hat build of Keycloak 26.2Red Hat |
|
Red Hat build of Keycloak 26.2Red Hat |
|
Red Hat build of Keycloak 26.2Red Hat |
|
Red Hat build of Keycloak 26.2Red Hat |
|
Red Hat build of Keycloak 26.2.9Red Hat |
References
- RHSA-2025:15336vendor-advisory
- RHSA-2025:15337vendor-advisory
- RHSA-2025:15338vendor-advisory
- RHSA-2025:15339vendor-advisory
- RHSA-2025:16399vendor-advisory
- RHSA-2025:16400vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-9162vdb-entry
- RHBZ#2389396issue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.