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

CVE-2026-41166 · Severity: high · CVSS 7 · Published 2026-04-22

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.

Technologies: io.openremote:openremote-manager (Maven), OpenRemote. Vendors: Maven, OpenRemote.

Quick answers

Is CVE-2026-41166 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-41166 being exploited in the wild.
How severe is CVE-2026-41166?
High severity, with a CVSS score of 7, published 22 April 2026.
Which products and versions are affected?
io.openremote:openremote-manager (Maven) < 1.22.1, ECOSYSTEM:introduced=0,fixed=1.22.1.
Is there a fix for CVE-2026-41166?
Yes. io.openremote:openremote-manager (Maven): upgrade to 1.22.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-41166?
Check whether you run io.openremote:openremote-manager (Maven) or OpenRemote at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • io.openremote:openremote-manager (Maven): upgrade to 1.22.1 or later
    # set io.openremote:openremote-manager to 1.22.1 in your pom.xml or build.gradle

Affected products

  • io.openremote:openremote-manager (Maven) < 1.22.1, ECOSYSTEM:introduced=0,fixed=1.22.1
  • OpenRemote

Identifiers

  • CVE-2026-41166
  • GHSA-49vv-25qx-mg44

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.