CVE-2025-9162
published medium CVSS 3.1 · 4.9Org.keycloak/keycloak-model-storage-service: variable injection into environment variables
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Keycloak | — | keycloak0 to < 26.3.4 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat | — | org.keycloak/keycloak-model-storage-serviceRed Hat build of Keycloak 26.0 | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.0 · 26.0.15-1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.0 · 26.0-18 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.0 · 26.0-19 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | org.keycloak/keycloak-model-storage-serviceRed Hat build of Keycloak 26.2 | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.2 · 26.2.8-1 and later · Other versions: affected | Unaffected | Not stated | redhat |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.2 · 26.2-8 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.2 · 26.2-8 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.2 · 26.2.9-1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.2 · 26.2-9 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.2 · 26.2-9 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | org.keycloak/keycloak-model-storage-serviceRed Hat build of Keycloak 26.2.9 | Unaffected | Not required | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.9 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Keycloak | keycloak | 0 to < 26.3.4 (affected · semver)Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0.15-1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-18 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-19 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2.8-1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-8 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-8 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2.9-1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-9 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2 | 26.2-9 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.2.9 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-526 Cleartext Storage of Sensitive Information in an Environment Variable
References
8- RHSA-2025:15336 https://access.redhat.com/errata/RHSA-2025:15336
- RHSA-2025:15337 https://access.redhat.com/errata/RHSA-2025:15337
- RHSA-2025:15338 https://access.redhat.com/errata/RHSA-2025:15338
- RHSA-2025:15339 https://access.redhat.com/errata/RHSA-2025:15339
- RHSA-2025:16399 https://access.redhat.com/errata/RHSA-2025:16399
- RHSA-2025:16400 https://access.redhat.com/errata/RHSA-2025:16400
- https://access.redhat.com/security/cve/CVE-2025-9162
- RHBZ#2389396 https://bugzilla.redhat.com/show_bug.cgi?id=2389396
Provider assertions
2redhat · cna
Org.keycloak/keycloak-model-storage-service: variable injection into environment variables
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 81188f61f862a45afbeccf087760984bedb9b56d7f9bdcf00f02d296bcec07fe
- Ingested
- 23 Sep 2026, 08:59:13 UTC
- Source record
- Official CVE record