CVE-2025-9162
A flaw was found in org.keycloak/keycloak-model-storage-service. …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/keycloak/keycloak/security/advisories/GHSA-8hxp-qmph-w5gq
- access.redhat.com/errata/RHSA-2025:15336
- access.redhat.com/errata/RHSA-2025:15337
- access.redhat.com/errata/RHSA-2025:15338
- access.redhat.com/errata/RHSA-2025:15339
- access.redhat.com/errata/RHSA-2025:16399
- access.redhat.com/errata/RHSA-2025:16400
- access.redhat.com/security/cve/CVE-2025-9162
- nvd.nist.gov/vuln/detail/CVE-2025-9162
- cve.org/CVERecord?id=CVE-2025-9162
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.