Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.keycloak/keycloak-model-storage-services
  4. ›
  5. CVE-2025-9162

CVE-2025-9162: Keycloak Potential Variable Reference in Model Storage Services

October 8, 2025 (updated October 14, 2025)

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.

References

  • 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
  • bugzilla.redhat.com/show_bug.cgi?id=2389396
  • github.com/advisories/GHSA-8hxp-qmph-w5gq
  • github.com/keycloak/keycloak
  • github.com/keycloak/keycloak/blob/26.3.3/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.java
  • github.com/keycloak/keycloak/blob/75afda410495a9576e00edc3277ab42ca155f806/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.java
  • github.com/keycloak/keycloak/security/advisories/GHSA-8hxp-qmph-w5gq
  • nvd.nist.gov/vuln/detail/CVE-2025-9162

Code Behaviors & Features

Detect and mitigate CVE-2025-9162 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 26.2.9, all versions starting from 26.3.0 before 26.3.4

Fixed versions

  • 26.3.4

Solution

Upgrade to version 26.3.4 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable

Source file

maven/org.keycloak/keycloak-model-storage-services/CVE-2025-9162.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:36:29 +0000.