CVE-2025-9162
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Keycloak | keycloak | 0 < 26.3.4 | affected |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0.15-1 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-18 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-19 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2.8-1 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-8 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-8 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2.9-1 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-9 < * | unaffected |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-9 < * | unaffected |
Weaknesses
- CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable
Workarounds
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://access.redhat.com/errata/RHSA-2025:15336
- https://access.redhat.com/errata/RHSA-2025:15337
- https://access.redhat.com/errata/RHSA-2025:15338
- https://access.redhat.com/errata/RHSA-2025:15339
- https://access.redhat.com/errata/RHSA-2025:16399
- https://access.redhat.com/errata/RHSA-2025:16400
- https://access.redhat.com/security/cve/CVE-2025-9162
- https://bugzilla.redhat.com/show_bug.cgi?id=2389396
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.