{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-1391","id":"CVE-2025-1391","title":"Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims","description":"A flaw was found in the Keycloak organization feature, which allows the incorrect assignment of an organization to a user if their username or email matches the organization’s domain pattern. This issue occurs at the mapper level, leading to misrepresentation in tokens. If an application relies on these claims for authorization, it may incorrectly assume a user belongs to an organization they are ","descriptionLong":"A flaw was found in the Keycloak organization feature, which allows the incorrect assignment of an organization to a user if their username or email matches the organization’s domain pattern. This issue occurs at the mapper level, leading to misrepresentation in tokens. If an application relies on these claims for authorization, it may incorrectly assume a user belongs to an organization they are not a member of, potentially granting unauthorized access or privileges.","published":"2025-02-17T14:01:35.354Z","updated":"2026-10-28T02:31:09.856624203Z","reserved":"2025-02-17T08:56:42.702Z","status":"Deferred","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"redhat"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"redhat"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"redhat.com"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["keycloak-services","Red Hat Build of Keycloak","Red Hat build of Keycloak 26.0"],"affectedProducts":[{"vendor":"","product":"keycloak-services","defaultStatus":"unaffected","versions":[{"status":"affected","version":"26.0.0","lessThan":"26.0.10","versionType":"semver"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","defaultStatus":"affected","versions":[{"version":"26.0.10-3","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","defaultStatus":"affected","versions":[{"version":"26.0-11","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","defaultStatus":"affected","versions":[{"version":"26.0-12","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","ranges":[">=26.1.0 <26.1.3","<26.0.10"],"fixed":["26.1.3","26.0.10"],"advisory":"GHSA-gvgg-2r3r-53x7"}],"cwes":["CWE-284"],"aliases":["GHSA-gvgg-2r3r-53x7"],"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:2544","tags":["vendor-advisory","x_refsource_REDHAT","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2025:2545","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-1391","tags":["vdb-entry","x_refsource_REDHAT","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2346082","tags":["issue-tracking","x_refsource_REDHAT","report","web"]},{"url":"https://github.com/keycloak/keycloak/issues/37169","tags":["report"]},{"url":"https://github.com/keycloak/keycloak/pull/37235","tags":["fix"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","tags":["web"]},{"url":"https://catalog.redhat.com/software/containers/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1391.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1391","tags":["advisory"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-gvgg-2r3r-53x7","tags":["web"]},{"url":"https://github.com/keycloak/keycloak/commit/5aa2b4c75bb474303ab807017582bc01a9f7e378","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00474,"epssPercentile":0.41737,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-1391","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1391","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-1391","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gvgg-2r3r-53x7","ok":true,"note":"GHSA-gvgg-2r3r-53x7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-1391","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}