CVE-2025-9162

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

MEDIUM
4.9
CVSS Score
Published: August 21, 2025 at 03:40 PM UTC
Updated: June 17, 2026 at 10:08 AM UTC
1 product affected across 1 vendorKeycloak

Using Red Hat build of Keycloak 26.0 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat build of Keycloak 26.0 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.9
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 26.3.4
Affected range stops below 26.3.4, so it looks safe — our inference, not a vendor statement

References (8)

Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2025:16400
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2025:16399

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.9MEDIUMredhat
Attack Vector
NETWORK
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-526

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card