# CVE-2026-41166: OpenRemote has Improper Access Control via updateUserRealmRoles function

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-22T14:38:23.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-49vv-25qx-mg44
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- openremote openremote: < 1.22.1; before 1.22.1
- io.openremote:openremote-manager (Maven): before 1.22.1

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L`

## References

- <https://github.com/openremote/openremote/security/advisories/GHSA-49vv-25qx-mg44> (exploit, vendor-advisory, web)
- <https://github.com/openremote/openremote/releases/tag/1.22.1> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41166> (advisory)
- <https://github.com/openremote/openremote> (package)

## Sources

- CVE List: [CVE-2026-41166](https://www.cve.org/CVERecord?id=CVE-2026-41166), CVE Terms of Use, modified 2026-04-28
- GitHub Advisory Database: [GHSA-49vv-25qx-mg44](https://github.com/advisories/GHSA-49vv-25qx-mg44), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-41166](https://nvd.nist.gov/vuln/detail/CVE-2026-41166), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41166 · Whole record: https://cve.day/CVE-2026-41166.json · Rebuilt by cve.day 2026-11-25T22:59:19.354Z
