Cyber Resilience

CVE-2025-9162

Published
21 August 2025
Modified
17 June 2026
CVSS Score v3.1 4.9
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.0049 40th percentile
Risk Priority 39 floored blend · peak EPSS

Summary

CVE-2025-9162 is a medium-severity Cleartext Storage of Sensitive Information in an Environment Variable (CWE-526) vulnerability. Its CVSS base score is 4.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Unsecured Credentials (T1552); ranked at the 40th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SC-13 (Cryptographic Protection) and SC-28 (Protection of Information at Rest) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

malicious content during the realm import procedure. This can lead to unintended consequences within the Keycloak environment.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-43029Shared CWE-526
CVE-2023-35931Shared CWE-526
CVE-2024-2700Shared CWE-526
CVE-2024-11736Shared CWE-526
CVE-2025-28381Shared CWE-526
CVE-2025-27899Shared CWE-526
CVE-2023-5720Shared CWE-526
CVE-2025-36017Shared CWE-526
CVE-2026-40153Shared CWE-526
CVE-2026-45370Shared CWE-526

Affected Assets

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Mandates use of cryptography to protect sensitive information, preventing its unencrypted storage in environment variables.

Requires confidentiality protection (typically encryption) for information at rest, directly stopping cleartext storage of sensitive data in environment variables.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.DS-01 mostly match
prevents

Encryption and related protections for data-at-rest directly prevent cleartext env-var storage of secrets.

PR.PS-01 partial match
prevents

Hardened configuration baselines and management practices reduce the chance of secrets being left in environment variables.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Cryptography control directly addresses the lack of encryption for sensitive data stored in environment variables.

mitigates

Classification drives decisions on what must be protected, indirectly discouraging cleartext storage of sensitive data.

mitigates

Authentication secrets are a common type of sensitive information; the control requires protecting them, which this weakness violates.

degrades

Requires secure deletion of sensitive information, which would prevent leaving it in environment variables.

A.8.11 Data masking partial match
mitigates

Data masking techniques can be applied to avoid storing sensitive values in cleartext environment variables.

mitigates

DLP policies can detect and block the placement of sensitive data into environment variables.

References