CVE-2025-9162: keycloak
Vulnerability summary
CVE-2025-9162 is a medium (CVSS 4.9) vulnerability in keycloak. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 41.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 21-08-2025PublishedVulnerability first disclosed.
- 19-12-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · ChainguardEcosystem advisory · calculated4.9MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- OSV · MavenEcosystem advisory · calculated4.9MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- NVDNIST4.9MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.50%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
0.00 pp
From 0.50% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- keycloak-26.2All versions (No fix recorded) | < 26.2.5-r6
- keycloak-26.2-iamguarded-compatAll versions (No fix recorded)
- keycloak-fips-26.2-iamguarded-fipsAll versions (No fix recorded)
Keycloak1 product
- keycloak< 26.3.4
Org.keycloak1 product
- keycloak-model-storage-servicesAll versions (No fix recorded) | ≥ 26.3.0, < 26.3.4
3 vendors · 5 products
References
16 linksShow all 16 references
- github.com/keycloak/keycloakPACKAGE