ghsa-w2wj-hw98-233h
Vulnerability from github
Published
2025-08-21 18:31
Modified
2025-09-04 15:30
Severity ?
Summary
Keycloak Potential Variable Reference in Model Storage Services
Details
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": [ { "package": { "ecosystem": "Maven", "name": "org.keycloak:keycloak-model-storage-services" }, "ranges": [ { "events": [ { "introduced": "0" }, { "last_affected": "26.3.3" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-9162" ], "database_specific": { "cwe_ids": [ "CWE-526" ], "github_reviewed": true, "github_reviewed_at": "2025-08-22T15:34:50Z", "nvd_published_at": "2025-08-21T16:15:35Z", "severity": "MODERATE" }, "details": "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\nallows 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.", "id": "GHSA-w2wj-hw98-233h", "modified": "2025-09-04T15:30:28Z", "published": "2025-08-21T18:31:27Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-9162" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2025:15336" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2025:15337" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2025:15338" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2025:15339" }, { "type": "WEB", "url": "https://access.redhat.com/security/cve/CVE-2025-9162" }, { "type": "WEB", "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2389396" }, { "type": "PACKAGE", "url": "https://github.com/keycloak/keycloak" }, { "type": "WEB", "url": "https://github.com/keycloak/keycloak/blob/26.3.3/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.java#L36" }, { "type": "WEB", "url": "https://github.com/keycloak/keycloak/blob/75afda410495a9576e00edc3277ab42ca155f806/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.java#L35" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Keycloak Potential Variable Reference in Model Storage Services" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.