CVE-2025-9162
Raw vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NSummary
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
- 🇪🇺 ENISA EUVD: EUVD-2025-25456
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
CVEs Like This One
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.
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.
Cryptography control directly addresses the lack of encryption for sensitive data stored in environment variables.
Classification drives decisions on what must be protected, indirectly discouraging cleartext storage of sensitive data.
Authentication secrets are a common type of sensitive information; the control requires protecting them, which this weakness violates.
Requires secure deletion of sensitive information, which would prevent leaving it in environment variables.
Data masking techniques can be applied to avoid storing sensitive values in cleartext environment variables.
DLP policies can detect and block the placement of sensitive data into environment variables.