CVE-2025-9162
Org.keycloak/keycloak-model-storage-service: variable injection into environment variables
- 4.9MediumCVSS base score
- 0.57%Exploitation in 30 daysEPSS · top 52% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 2 days later
· 2 days later
Published
- 4 months later
· 4 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVDNVD · Deferred | 3.1 | Medium4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.57% · top 52% of all CVEs (11 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.9.
Affected products
- affected < 26.3.4
Red Hat · Red Hat build of Keycloak 26.0
All versions: unaffected
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0.15-1 – < *
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0-18 – < *
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0-19 – < *
Red Hat · Red Hat build of Keycloak 26.2
All versions: unaffected
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2.8-1 – < *
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2-8 – < *
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2-8 – < *
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2.9-1 – < *
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2-9 – < *
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2-9 – < *
Red Hat · Red Hat build of Keycloak 26.2.9
All versions: unaffected
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.keycloak:keycloak-model-storage-servicesGHSA-8hxp-qmph-w5gq (opens in a new tab)
What to do
Workaround: 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.
References
References8
- RHSA-2025:15336 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:15337 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:15338 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:15339 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:16399 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:16400 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-9162 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2389396 (opens in a new tab)issue-trackingx_refsource_REDHAT
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-25456 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-8hxp-qmph-w5gq (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-9162)Record last updated .