CVE Vulnerabilities

CVE-2025-9162

Cleartext Storage of Sensitive Information in an Environment Variable

Published: Aug 21, 2025 | Modified: Sep 04, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
4.9 MODERATE
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Ubuntu

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.

Weakness

The product uses an environment variable to store unencrypted sensitive information.

Affected Software

Name Vendor Start Version End Version
Red Hat build of Keycloak 26.0 RedHat org.keycloak/keycloak-model-storage-service *
Red Hat build of Keycloak 26.0 RedHat rhbk/keycloak-operator-bundle:26.0.15-1 *
Red Hat build of Keycloak 26.0 RedHat rhbk/keycloak-rhel9:26.0-18 *
Red Hat build of Keycloak 26.0 RedHat rhbk/keycloak-rhel9-operator:26.0-19 *
Red Hat build of Keycloak 26.2 RedHat org.keycloak/keycloak-model-storage-service *
Red Hat build of Keycloak 26.2 RedHat rhbk/keycloak-operator-bundle:26.2.8-1 *
Red Hat build of Keycloak 26.2 RedHat rhbk/keycloak-rhel9:26.2-8 *
Red Hat build of Keycloak 26.2 RedHat rhbk/keycloak-rhel9-operator:26.2-8 *

Potential Mitigations

References