{"id":"CVE-2026-41166","state":"PUBLISHED","title":"OpenRemote has Improper Access Control via updateUserRealmRoles function","description":"OpenRemote is an open-source internet-of-things platform. Prior to version 1.22.1, a user who has `write:admin` in one Keycloak realm can call the Manager API to update Keycloak realm roles for users in another realm, including `master`. The handler uses the `{realm}` path segment when talking to the identity provider but does not check that the caller may administer that realm. This could result in a privilege escalation to `master` realm administrator if the attacker controls any user in `master` realm. Version 1.22.1 fixes the issue.","publishedAt":"2026-04-22T20:31:29.234Z","updatedAt":"2026-04-28T03:55:21.242Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["openremote openremote"],"affected":[{"vendor":"openremote","product":"openremote","versions":[{"version":"< 1.22.1","status":"affected"}]}],"references":["https://github.com/openremote/openremote/security/advisories/GHSA-49vv-25qx-mg44","https://github.com/openremote/openremote/releases/tag/1.22.1"],"weaknesses":["CWE-284"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/41xxx/CVE-2026-41166.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-41166","state":"PUBLISHED","datePublished":"2026-04-22T20:31:29.234Z","dateUpdated":"2026-04-28T03:55:21.242Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-17T16:34:45.525Z"},"containers":{"cna":{"title":"OpenRemote has Improper Access Control via updateUserRealmRoles function","descriptions":[{"lang":"en","value":"OpenRemote is an open-source internet-of-things platform. Prior to version 1.22.1, a user who has `write:admin` in one Keycloak realm can call the Manager API to update Keycloak realm roles for users in another realm, including `master`. The handler uses the `{realm}` path segment when talking to the identity provider but does not check that the caller may administer that realm. This could result in a privilege escalation to `master` realm administrator if the attacker controls any user in `master` realm. Version 1.22.1 fixes the issue."}],"affected":[{"vendor":"openremote","product":"openremote","versions":[{"version":"< 1.22.1","status":"affected"}]}],"references":[{"url":"https://github.com/openremote/openremote/security/advisories/GHSA-49vv-25qx-mg44","name":"https://github.com/openremote/openremote/security/advisories/GHSA-49vv-25qx-mg44","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openremote/openremote/releases/tag/1.22.1","name":"https://github.com/openremote/openremote/releases/tag/1.22.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","lang":"en","description":"CWE-284: Improper Access Control","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-22T20:31:29.234Z"},"source":{"advisory":"GHSA-49vv-25qx-mg44","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/openremote/openremote/security/advisories/GHSA-49vv-25qx-mg44","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-24T00:00:00+00:00","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-41166"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-28T03:55:21.242Z"}}]}}}