CVE-2025-9162 MEDIUM

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

Vendor Keycloak
Product keycloak
Weakness CWE-526
Published August 21, 2025
Last update December 19, 2025

CVSS base score

4.9/10
Attack vector Network
Attack complexity Low
Privileges required High
User interaction None
Confidentiality High
Integrity None

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 21, 2025 CVE published
December 19, 2025 Record updated

Related vulnerabilities

04Related CVE