CVE-2025-9162 json
Org.keycloak/keycloak-model-storage-service: variable injection into environment variables
published last yr. modified last mo. also GHSA-8hxp-qmph-w5gq , EUVD-2025-25456
- cvss
- 4.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
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.
Patch / fix
- maven org.keycloak:keycloak-model-storage-services 26.3.4
- Keycloak keycloak 26.3.4
- Red Hat Red Hat build of Keycloak 26.0 26.0-18, 26.0-19, 26.0.15-1
- Red Hat Red Hat build of Keycloak 26.2 26.2-8, 26.2-9, 26.2.8-1, 26.2.9-1
Is CVE-2025-9162 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-9162 updated cvss 4.9
org.keycloak/keycloak-model-storage-service: Variable injection into environment variables
-
Red Hat build of Keycloak 26.0 rhbk/keycloak-rhel9 26.0-18, rhbk/keycloak-rhel9-operator 26.0-19, rhbk/keycloak-operator-bundle 26.0.15-1fixed: vendor fix RHSA-2025:15337
-
Red Hat build of Keycloak 26.2 rhbk/keycloak-rhel9 26.2-8, rhbk/keycloak-rhel9 26.2-9, rhbk/keycloak-rhel9-operator 26.2-8, rhbk/keycloak-rhel9-operator 26.2-9, rhbk/keycloak-operator-bundle 26.2.8-1, rhbk/keycloak-operator-bundle 26.2.9-1fixed: vendor fix RHSA-2025:16400
-
Red Hat build of Keycloak 26.2.9fixed: vendor fix RHSA-2025:16399
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.54% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-model-storage-services | all versions >=26.3.0, <26.3.4 |
26.3.4 |
Affected products
- Keycloak keycloak
- Red Hat Red Hat build of Keycloak 26.0
- Red Hat Red Hat build of Keycloak 26.2
- Red Hat Red Hat build of Keycloak 26.2.9
Classification
- Weakness
-
- CWE-526 Cleartext Storage of Sensitive Information in an Environment Variable
References
-
access.redhat.com
/errata/RHSA-2025:15336
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:15337
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:15338
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:15339
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:16399
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:16400
vendor-advisory, web
-
access.redhat.com
/security/cve/CVE-2025-9162
vdb-entry, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2389396
issue-tracking, web
-
github.com
/keycloak/keycloak/security/advisories/GHSA-8hxp-qmph-w5gq
web
-
github.com
/keycloak/keycloak
package
-
github.com
/keycloak/keycloak/blob/26.3.3/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBase
web
-
github.com
/keycloak/keycloak/blob/75afda410495a9576e00edc3277ab42ca155f806/model/storage-services/src/main/java/org/keyc
web
Sources
- CVE List CVE-2025-9162
- GitHub Advisory GHSA-8hxp-qmph-w5gq
- NVD CVE-2025-9162
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.