{"id":"CVE-2026-41166","summary":"OpenRemote has Improper Access Control via updateUserRealmRoles function","details":"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.","aliases":["GHSA-49vv-25qx-mg44"],"modified":"2026-07-15T01:49:08.294858552Z","published":"2026-04-22T20:31:29.234Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41166.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-284"]},"references":[{"type":"WEB","url":"https://github.com/openremote/openremote/releases/tag/1.22.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41166.json"},{"type":"ADVISORY","url":"https://github.com/openremote/openremote/security/advisories/GHSA-49vv-25qx-mg44"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41166"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openremote/openremote","events":[{"introduced":"0"},{"fixed":"38b9b55a84fc3b7e582879a56c0e2c2d0d2daf53"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:openremote:openremote:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.22.1"}]}}],"versions":["1.22.0","1.21.0","1.20.2","1.20.1","1.20.0","1.19.0","1.18.0","1.17.3","1.17.2","1.17.1","1.17.0","1.16.1","1.16.0","1.15.2","1.15.1","1.15.0","1.14.0","1.13.1","1.13.0","1.12.3","1.12.2","1.12.1","1.12.0","1.11.3","1.11.2","1.11.1","1.11.0","1.10.0","1.9.0","1.8.1","1.8.0","archive/console_loader","1.7.0","1.6.5","1.6.4","1.6.3","1.6.2","1.6.1","1.6.0","1.5.0","1.4.0","1.3.5","1.3.4","1.3.3","1.3.2","1.3.1","1.3.0","1.2.4","1.2.3","1.2.2","1.2.1","1.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41166.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L"}]}