{"cve":"CVE-2025-9162","nvd":{"published":"2025-08-21T16:15:35.067","modified":"2026-06-17T10:08:26.807","status":"Deferred","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\nallows 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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9},"cwes":["CWE-526"],"references":["https://access.redhat.com/errata/RHSA-2025:15336","https://access.redhat.com/errata/RHSA-2025:15337","https://access.redhat.com/errata/RHSA-2025:15338","https://access.redhat.com/errata/RHSA-2025:15339","https://access.redhat.com/errata/RHSA-2025:16399"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-9162","score":0.00536,"percentile":0.45226,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8hxp-qmph-w5gq","url":"https://osv.dev/vulnerability/GHSA-8hxp-qmph-w5gq","summary":"Keycloak Potential Variable Reference in Model Storage Services","modified":"2026-09-10T03:50:29.633897015Z","packages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-model-storage-services","purl":"pkg:maven/org.keycloak/keycloak-model-storage-services","ranges":["all versions"],"fixed":[]},{"ecosystem":"Maven","name":"org.keycloak:keycloak-model-storage-services","purl":"pkg:maven/org.keycloak/keycloak-model-storage-services","ranges":[">=26.3.0 <26.3.4"],"fixed":["26.3.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}