4.9

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

Deferred
AliasesCGA-55r7-34h8-3fp3CGA-7fqc-qgwm-8mhjCGA-f256-49qc-h6gr
Published 21-08-2025Last modified 19-12-2025

Vulnerability summary

CVE-2025-9162 is a medium (CVSS 4.9) vulnerability in keycloak. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 50.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.9/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.61%
0%100%
Low · +0.07 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 21-08-2025
    PublishedVulnerability first disclosed.
  2. 19-12-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.61%

Chance of exploitation in the next 30 days

Percentile

51%

Versus all other CVEs

30-day change

Increase +0.07 pp

From 0.54% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard3 products
  • keycloak-26.2All versions (No fix recorded) | < 26.2.5-r6
  • keycloak-26.2-iamguarded-compatAll versions (No fix recorded)
  • keycloak-fips-26.2-iamguarded-fipsAll versions (No fix recorded)
Keycloak1 product
Org.keycloak1 product
  • keycloak-model-storage-servicesAll versions (No fix recorded) | ≥ 26.3.0, < 26.3.4

3 vendors · 5 products

References

16 links
Show all 16 references