NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
MEDIUM severity

CVE-2025-9162 — keycloak-model-storage-se…

MEDIUM

CVE-2025-9162 is a medium-severity (CVSS 4.9) CWE-526 vulnerability in org.keycloak:keycloak-model-storage-services. A fix is available for org.keycloak:keycloak-model-storage-services — see the affected versions and patch details below.

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

Also known asGHSA-8hxp-qmph-w5gq
Published
Updated
Affected
2 pkgs
Patched
1 / 2
Exploits
None indexed
Exploitation data as of Nov 6, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-9162.

EPSS Exploitation Probability

via FIRST.org ↗
0.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs45th percentile — riskier than 45% of all scored CVEsHighest risk
0.00%0.35%0.69%1.04%0.0%0.5%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
☕org.keycloak:keycloak-model-storage-services☕org.keycloak:keycloak-model-storage-services

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

2 total 1 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.keycloak:keycloak-model-storage-servicesall versionsNo fix
☕Mavenorg.keycloak:keycloak-model-storage-services≥ 26.3.0&&< 26.3.426.3.4org.keycloak:keycloak-model-storage-services:26.3.4

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.keycloak:keycloak-model-storage-services, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    A fix is available for CVE-2025-9162; check the affected-versions list above or the advisory for the patched release of org.keycloak:keycloak-model-storage-services, then make sure no transitive dependency still pins the vulnerable range.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate
Workaround published by Red Hat
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Source: Red Hat security advisory for CVE-2025-9162 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat build of Keycloak 26.0org.keycloak/keycloak-model-storage-serviceRHSA-2025:15336
Red Hat build of Keycloak 26.0rhbk/keycloak-operator-bundle:26.0.15-1RHSA-2025:15337
Red Hat build of Keycloak 26.2org.keycloak/keycloak-model-storage-serviceRHSA-2025:15339
Red Hat build of Keycloak 26.2rhbk/keycloak-operator-bundle:26.2.8-1RHSA-2025:15338
Red Hat build of Keycloak 26.2rhbk/keycloak-operator-bundle:26.2.9-1RHSA-2025:16400
Red Hat build of Keycloak 26.2.9org.keycloak/keycloak-model-storage-serviceRHSA-2025:16399

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2025-9162 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2025-9162: keycloak-model-storage — Fixed in 26.3.4