CVE-2025-9162
mediumpriority · track · 0EPSS 0.005 · 44 %ileDEEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (14)
Products and version ranges known to be affected.
- Maven org.keycloak:keycloak-model-storage-servicesall versionsosvUSpkg:maven/org.keycloak/keycloak-model-storage-services
- Maven org.keycloak:keycloak-model-storage-services26.3.0 → 26.3.4osvUSpkg:maven/org.keycloak/keycloak-model-storage-services
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-1892Keycloak: Schwachstelle ermöglicht Offenlegung von InformationenDeutsch2025-08-21csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Keycloak ausnutzen, um Informationen offenzulegen.
- GHSA-8hxp-qmph-w5gqKeycloak Potential Variable Reference in Model Storage Services2025-10-08ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (21)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/CVE-2025-9162cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2389396cnnvd
- https://github.com/keycloak/keycloak/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-9162cnnvd
- https://vigilance.fr/vulnerability/Keycloak-information-disclosure-via-Imports-Variable-Resolution-48420cnnvd
- https://access.redhat.com/errata/RHSA-2025:15336enisa_euvd
- https://access.redhat.com/errata/RHSA-2025:15337enisa_euvd
- https://access.redhat.com/errata/RHSA-2025:15338enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan