CVE Tools

CVE-2025-9162

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

Published: Aug 21, 2025Updated: Sep 22, 2025 Sources: CVE List NVD GHSACWE-526
4.9CVSSMEDIUM

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 Vector Breakdown

AV:NAC:LPR:HUI:NS:UC:HI:NA:N
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:HPrivileges Required
High
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:NIntegrity
None
A:NAvailability
None

Weaknesses

Affected Products

keycloakoss-projectSecurity Productsaka keycloak-nodejs-auth-utils
red hatcommercialUSOperating Systemsaka red hat
mavenpackage-ecosystemOSS Libraries

Exploitability

Official Patch Available
Workaround Available

References

and 9 more references View all →

Timeline

Published
Aug 21, 2025
Last Updated
Sep 22, 2025

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-9162 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows