CVE-2025-9162

Org.keycloak/keycloak-model-storage-service: variable injection into environment variables

State
Published
Severity
4.9 Medium
Published
Aug 21, 2025
Updated
Dec 19, 2025
Reserved
Aug 19, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:Nredhat

Weaknesses

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

Affected Products

ProductVersions
keycloakKeycloak
  • before 26.3.4Affected
Red Hat build of Keycloak 26.0Red Hat
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0.15-1 and laterNot affected
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0-18 and laterNot affected
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0-19 and laterNot affected
    Red Hat build of Keycloak 26.2Red Hat
      Red Hat build of Keycloak 26.2Red Hat
      • 26.2.8-1 and laterNot affected
      Red Hat build of Keycloak 26.2Red Hat
      • 26.2-8 and laterNot affected
      Red Hat build of Keycloak 26.2Red Hat
      • 26.2-8 and laterNot affected
      Red Hat build of Keycloak 26.2Red Hat
      • 26.2.9-1 and laterNot affected
      Red Hat build of Keycloak 26.2Red Hat
      • 26.2-9 and laterNot affected
      Red Hat build of Keycloak 26.2Red Hat
      • 26.2-9 and laterNot affected
      Red Hat build of Keycloak 26.2.9Red Hat

        References

        Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.