CVE-2025-9162keycloak
Medium 4.9
Follow: this CVE · Keycloak · keycloak We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 3.1
- 4.9
- EPSS
- —
- Auth required
- Yes
- Published
- Aug 21, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-526
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for keycloak.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-model-storage-services |
all |
no fixed version | — |
| Maven | org.keycloak:keycloak-model-storage-services |
≥ 26.3.0 < 26.3.4 |
26.3.4 |
— |
Per OSV / GitHub Advisories (GHSA-8hxp-qmph-w5gq). Check the version in your lockfile before upgrading.
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
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.