Read the docs
TI-2025-08400 Aliases CVE-2025-9162GHSA-8hxp-qmph-w5gq

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

Priority LOW 23CWE-526Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00536 45th percentileScored 2026-11-07
Fix Fixed keycloak (Keycloak): 26.3.4org.keycloak:keycloak-model-storage-services (Maven): 26.3.4Red Hat: 6 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Keycloakkeycloakbefore 26.3.426.3.4Patch availableCNA
Red HatRed Hat build of Keycloak 26.0——Not affectedCNA
Red HatRed Hat build of Keycloak 26.0—26.0.15-1Patch availableCNA
Red HatRed Hat build of Keycloak 26.0—26.0-18Patch availableCNA
Red HatRed Hat build of Keycloak 26.0—26.0-19Patch availableCNA
Red HatRed Hat build of Keycloak 26.2——Not affectedCNA
Red HatRed Hat build of Keycloak 26.2—26.2.8-1Patch availableCNA
Red HatRed Hat build of Keycloak 26.2—26.2-8Patch availableCNA
Red HatRed Hat build of Keycloak 26.2—26.2-8Patch availableCNA
Red HatRed Hat build of Keycloak 26.2—26.2.9-1Patch availableCNA
Red HatRed Hat build of Keycloak 26.2—26.2-9Patch availableCNA
Red HatRed Hat build of Keycloak 26.2—26.2-9Patch availableCNA
Red HatRed Hat build of Keycloak 26.2.9——Not affectedCNA
—org.keycloak:keycloak-model-storage-services (Maven)all versions—No fix listedGHSA-8hxp-qmph-w5gq
—org.keycloak:keycloak-model-storage-services (Maven)26.3.0 to before 26.3.426.3.4Patch availableGHSA-8hxp-qmph-w5gq
  • keycloak VendorKeycloak Affected before 26.3.4 Fixed in 26.3.4 Patch available CNA
  • Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0.15-1 Patch available CNA
  • Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-18 Patch available CNA
  • Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-19 Patch available CNA
  • Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2.8-1 Patch available CNA
  • Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-8 Patch available CNA
  • Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-8 Patch available CNA
  • Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2.9-1 Patch available CNA
  • Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-9 Patch available CNA
  • Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-9 Patch available CNA
  • Red Hat build of Keycloak 26.2.9 VendorRed Hat Affected — Fixed in — Not affected CNA
  • org.keycloak:keycloak-model-storage-services (Maven) Vendor— Affected all versions Fixed in — No fix listed GHSA-8hxp-qmph-w5gq
  • org.keycloak:keycloak-model-storage-services (Maven) Vendor— Affected 26.3.0 to before 26.3.4 Fixed in 26.3.4 Patch available GHSA-8hxp-qmph-w5gq

CPE names CNA · 4

CPEVersionsRoleVendor
cpe:/a:redhat:build_keycloak:26.026.0—Red Hat
cpe:/a:redhat:build_keycloak:26.0::el926.0—Red Hat
cpe:/a:redhat:build_keycloak:26.226.2—Red Hat
cpe:/a:redhat:build_keycloak:26.2::el926.2—Red Hat
  • cpe:/a:redhat:build_keycloak:26.0 Versions 26.0 — ·Red Hat
  • cpe:/a:redhat:build_keycloak:26.0::el9 Versions 26.0 — ·Red Hat
  • cpe:/a:redhat:build_keycloak:26.2 Versions 26.2 — ·Red Hat
  • cpe:/a:redhat:build_keycloak:26.2::el9 Versions 26.2 — ·Red Hat

Remediation

  • Fix · CNA keycloak (Keycloak) Fixed in 26.3.4
  • Fix · GHSA-8hxp-qmph-w5gq org.keycloak:keycloak-model-storage-services (Maven) Fixed in 26.3.4 Advisory →

Red Hat 6 advisories

  • RHSA-2025:16399 Released 2025-09-22 · Red Hat rating Moderate
    Red Hat build of Keycloak 26.2.9 Security Update
    • Red Hat build of Keycloak 26.2.9
  • RHSA-2025:16400 Released 2025-09-22 · Red Hat rating Moderate
    Red Hat build of Keycloak 26.2.9 Images Security Update
    • Red Hat build of Keycloak 26.2 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
  • RHSA-2025:15337 Released 2025-09-04 · Red Hat rating Moderate
    Red Hat build of Keycloak 26.0.15 Images Update
    • Red Hat build of Keycloak 26.0 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
Show 3 more Red Hat advisories
  • RHSA-2025:15338 Released 2025-09-04 · Red Hat rating Moderate
    Red Hat build of Keycloak 26.2.8 Images Security Update
    • Red Hat build of Keycloak 26.2 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
  • RHSA-2025:15339 Released 2025-09-04 · Red Hat rating Moderate
    Red Hat build of Keycloak 26.2.8 Security Update
    • Red Hat build of Keycloak 26.2
  • RHSA-2025:15336 Released 2025-09-04 · Red Hat rating Moderate
    Red Hat build of Keycloak 26.0.15 Update
    • Red Hat build of Keycloak 26.0

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat build of Keycloak 26.0Fixed RHSA-2025:15336, RHSA-2025:15337
Red Hat build of Keycloak 26.2Fixed RHSA-2025:15338, RHSA-2025:15339, RHSA-2025:16400
Red Hat build of Keycloak 26.2.9Fixed RHSA-2025:16399

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-9162
  2. 2026-10-03 Alias added: GHSA-8hxp-qmph-w5gq

References

  • TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
  • TI-2017-05120 It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens… CVSS 3.0CRITICAL 9.8
  • TI-2017-08952 Weak password recovery in Red Hat Keycloak CVSS 3.0HIGH 8.8
  • TI-2014-03024 The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak… CVSS 3.0HIGH 8.8
  • TI-2026-01295 Org.keycloak/keycloak-quarkus-server: keycloak: unauthorized access via jwt authorization grant with disabled users CVSS 3.1HIGH 8.1
  • TI-2017-08950 Insufficient session expiration in Red Hat keycloak CVSS 3.0HIGH 7.5
See all 21 →

Sources