{"schemaVersion":4,"id":"CVE-2025-9162","aliases":["CGA-55r7-34h8-3fp3","CGA-7fqc-qgwm-8mhj","CGA-f256-49qc-h6gr","CGA-ghw8-8mww-frgj","CGA-hcjg-w42q-r98g","CGA-hqxq-pfvj-hgwg","GHSA-8hxp-qmph-w5gq","CGA-qwgv-v9hp-qchr","CGA-x9fr-xjqp-5vqq"],"status":"published","duplicateOf":null,"title":"Org.keycloak/keycloak-model-storage-service: variable injection into environment variables","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\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.","dates":{"published":"2025-08-21T15:40:25.136Z","modified":"2025-12-19T21:46:23.680Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":3.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":3.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00611,"percentile":0.50739,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.07499999999999998,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00536},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00518,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00611,"percentile":0.50739}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00569,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00873,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00611,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00611,"percentile":0.50739}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-526","name":"Cleartext Storage of Sensitive Information in an Environment Variable","description":"The product uses an environment variable to store unencrypted sensitive information.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/526.html"}],"affected":[{"vendor":"chainguard","product":"keycloak-26.2","name":"keycloak-26.2","label":"keycloak-26.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 26.2.5-r6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"26.2.5-r6","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 26.2.5-r6","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-26.2-iamguarded-compat","name":"keycloak-26.2-iamguarded-compat","label":"keycloak-26.2-iamguarded-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.2-iamguarded-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.2-iamguarded-fips","name":"keycloak-fips-26.2-iamguarded-fips","label":"keycloak-fips-26.2-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.2-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"keycloak","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 26.3.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"26.3.4","endInclusive":false}}],"versionsText":"< 26.3.4","eol":null,"hubHref":"/vendor/keycloak/keycloak"},{"vendor":"org.keycloak","product":"keycloak-model-storage-services","name":"org.keycloak:keycloak-model-storage-services","label":"keycloak-model-storage-services","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-model-storage-services","purlType":"maven","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"≥ 26.3.0, < 26.3.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"26.3.0","startInclusive":true,"end":"26.3.4","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | ≥ 26.3.0, < 26.3.4","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:15336","label":"access.redhat.com/errata/RHSA-2025:15336","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2025:15337","label":"access.redhat.com/errata/RHSA-2025:15337","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2025:15338","label":"access.redhat.com/errata/RHSA-2025:15338","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2025:15339","label":"access.redhat.com/errata/RHSA-2025:15339","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2025:16399","label":"access.redhat.com/errata/RHSA-2025:16399","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2025:16400","label":"access.redhat.com/errata/RHSA-2025:16400","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-9162","label":"access.redhat.com/security/cve/CVE-2025-9162","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2389396","label":"bugzilla.redhat.com/show_bug.cgi?id=2389396","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT","WEB"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","label":"access.redhat.com/downloads/content/package-browser/","hostname":"access.redhat.com","tags":["WEB"]},{"url":"https://catalog.redhat.com/software/containers/","label":"catalog.redhat.com/software/containers/","hostname":"catalog.redhat.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9162.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9162.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9162","label":"nvd.nist.gov/vuln/detail/CVE-2025-9162","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-8hxp-qmph-w5gq","label":"github.com/keycloak/keycloak/security/advisories/GHSA-8hxp-qmph-w5gq","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/blob/26.3.3/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.java#L36","label":"github.com/keycloak/…","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/blob/75afda410495a9576e00edc3277ab42ca155f806/model/storage-services/src/main/java/org/keycloak/exportimport/AbstractFileBasedImportProvider.java#L35","label":"github.com/keycloak/…","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-7CX2-MGMP-6GFG"]},"timeline":[{"kind":"published","date":"2025-08-21T15:40:25.136Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-12-19T21:46:23.680Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 4.9, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,49],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00611,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-12-19T21:46:23.680Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_chainguard","date":"2025-12-19T21:46:23.680Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_maven","date":"2025-12-19T21:46:23.680Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-12-19T21:46:23.680Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-08-21T19:59:07.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00611,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T08:03:29.184Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T08:03:29.748Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T08:03:29.946Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T08:01:00.622Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T08:03:27.537Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T08:03:26.585Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T08:30:21.476Z","stale":false,"partial":false}}