{"vuln_id":"GHSA-3h6w-xcw3-9xjj","aliases":["CVE-2026-104885","CVE-2026-54641","CVE-2026-57168"],"description":"OpenRemote: Cross-realm MQTT session disconnect without authorization","published_at":"2026-11-20T14:56:58Z","modified_at":"2026-11-20T15:15:03.433458Z","first_seen_at":"2026-11-21T19:15:19.254747Z","severity":"medium","severity_source":"ghsa","cvss_score":6.3,"cvss_vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","cwe":["CWE-862"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-3h6w-xcw3-9xjj"},"matched_alias":null,"items":[{"id":10996,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-3h6w-xcw3-9xjj: OpenRemote: Cross-realm MQTT session disconnect without authorization","summary":"OpenRemote: Cross-realm MQTT session disconnect without authorization\n\n### Summary\n\nCross-realm MQTT session disconnect without authorization\n\n## Vulnerability\n\nThe `disconnectUserSession` endpoint in `UserResourceImpl.java` (line 443) accepts a `realm` path parameter but ignores it entirely, performing no authorization or realm-boundary check before force-disconnecting an MQTT session. Any authenticated user from any realm can disconnect MQTT broker sessions belonging to users in other realms by supplying the target session ID.\n\nFile: `manager/src/main/java/org/openremote/manager/security/UserResourceImpl.java`, lines 443-447\n\n```java\n@Override\npublic void disconnectUserSession(RequestParams requestParams, String realm, String sessionID) {\n    if (!mqttBrokerService.disconnectSession(sessionID)) {\n        throw new NotFoundException(\"User session not found\");\n    }\n}\n```\n\nThe REST interface at `model/src/main/java/org/openremote/model/security/UserResource.java` (line 201-204) maps this to `GET {realm}/disconnect/{sessionID}` with no `@RolesAllowed` annotation, so any authenticated user (not just admins) can call it.\n\n## Root Cause\n\nCVE-2026-54641 (commit de89b8d) fixed cross-realm information disclosure in three read methods of the same file (`get()`, `getUserClientRoles()`, `getUserRealmRoles()`) and also added a realm check to `getClientRoles()`. The fix added `throwIfCannotReadUserInRealm()` and `throwIfCannotAdminRealm()` guards. However, `disconnectUserSession` was not patched and remains unprotected. Every other mutating method in this class has either a `@RolesAllowed` annotation on the interface or an explicit realm check in the implementation. This one has neither.\n\n## Proof of Concept\n\nGiven two realms, \"master\" and \"building\":\n\n1. User A authenticates in the \"building\" realm (any role, no admin needed).\n2. User B has an active MQTT session in the \"master\" realm with session ID `S`.\n3. User A sends: `GET /api/master/user/master/disconnect/S` with their building-realm bearer token.\n4. The handler ignores the realm path segments, looks up session `S` in the global `connectionIDConnectionMap`, and calls `doForceDisconnect()`. User B's MQTT connection is terminated.\n\nSession IDs use the Netty `ChannelId.asLongText()` format (deterministic, partially sequential). While not trivially brute-forceable, IDs can leak through monitoring, logs, or correlated API calls. Within the same realm, any user (not just admins) can also disconnect sessions they should not have access to.\n\n## Impact\n\nIn a multi-tenant IoT deployment, an attacker authenticated in any realm can disrupt MQTT device connectivity in other realms. Since OpenRemote is used for building management, energy monitoring, and industrial IoT, forcibly disconnecting MQTT sessions can:\n\n- Knock IoT sensors and actuators offline across tenant boundaries\n- Disrupt safety-critical alarm monitoring (compounding the alarm IDOR fixed in CVE-2026-57168)\n- Cause denial of service against other tenants' device fleets\n\nThe method also uses HTTP GET for a destructive op\n\nAffected: Maven:io.openremote:openremote-manager\n\nFixed in: 1.31.0\n\nReferences:\nhttps://github.com/openremote/core/security/advisories/GHSA-3h6w-xcw3-9xjj\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-104885\nhttps://github.com/openremote/core/commit/51dce18d9e00d671a5e032d942ece186bdada560\nhttps://github.com/openremote/core/releases/tag/1.31.0\nhttps://github.com/openremote/openremote","url":"https://osv.dev/vulnerability/GHSA-3h6w-xcw3-9xjj","published_at":"2026-11-20T14:56:58Z","updated_at":"2026-11-20T15:15:03.433458Z","fetched_at":"2026-11-21T19:15:55.946357Z","severity":"high","cvss_score":7.7,"epss":0.00321,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"io.openremote:openremote-manager","vuln_id":"CVE-2026-104885","vuln_ids":["CVE-2026-104885","CVE-2026-54641","CVE-2026-57168","GHSA-3H6W-XCW3-9XJJ"],"tags":["osv","maven","fix-available"],"cluster_id":2019,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10996","html":"https://vulnwatch.ve1ve2.com/item/10996"}},{"id":2301,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-3h6w-xcw3-9xjj / CVE-2026-104885: OpenRemote: Cross-realm MQTT session disconnect without authorization","summary":"OpenRemote: Cross-realm MQTT session disconnect without authorization\n\n### Summary\n\nCross-realm MQTT session disconnect without authorization\n\n## Vulnerability\n\nThe `disconnectUserSession` endpoint in `UserResourceImpl.java` (line 443) accepts a `realm` path parameter but ignores it entirely, performing no authorization or realm-boundary check before force-disconnecting an MQTT session. Any authenticated user from any realm can disconnect MQTT broker sessions belonging to users in other realms by supplying the target session ID.\n\nFile: `manager/src/main/java/org/openremote/manager/security/UserResourceImpl.java`, lines 443-447\n\n```java\n@Override\npublic void disconnectUserSession(RequestParams requestParams, String realm, String sessionID) {\n    if (!mqttBrokerService.disconnectSession(sessionID)) {\n        throw new NotFoundException(\"User session not found\");\n    }\n}\n```\n\nThe REST interface at `model/src/main/java/org/openremote/model/security/UserResource.java` (line 201-204) maps this to `GET {realm}/disconnect/{sessionID}` with no `@RolesAllowed` annotation, so any authenticated user (not just admins) can call it.\n\n## Root Cause\n\nCVE-2026-54641 (commit de89b8d) fixed cross-realm information disclosure in three read methods of the same file (`get()`, `getUserClientRoles()`, `getUserRealmRoles()`) and also added a realm check to `getClientRoles()`. The fix added `throwIfCannotReadUserInRealm()` and `throwIfCannotAdminRealm()` guards. However, `disconnectUserSession` was not patched and remains unprotected. Every other mutating method in this class has either a `@RolesAllowed` annotation on the interface or an explicit realm check in the implementation. This one has neither.\n\n## Proof of Concept\n\nGiven two realms, \"master\" and \"building\":\n\n1. User A authenticates in the \"building\" realm (any role, no admin needed).\n2. User B has an active MQTT session in the \"master\" realm with session ID `S`.\n3. User A sends: `GET /api/master/user/master/disconnect/S` with their building-realm bearer token.\n4. The handler ignores the realm path segments, looks up session `S` in the global `connectionIDConnectionMap`, and calls `doForceDisconnect()`. User B's MQTT connection is terminated.\n\nSession IDs use the Netty `ChannelId.asLongText()` format (deterministic, partially sequential). While not trivially brute-forceable, IDs can leak through monitoring, logs, or correlated API calls. Within the same realm, any user (not just admins) can also disconnect sessions they should not have access to.\n\n## Impact\n\nIn a multi-tenant IoT deployment, an attacker authenticated in any realm can disrupt MQTT device connectivity in other realms. Since OpenRemote is used for building management, energy monitoring, and industrial IoT, forcibly disconnecting MQTT sessions can:\n\n- Knock IoT sensors and actuators offline across tenant boundaries\n- Disrupt safety-critical alarm monitoring (compounding the alarm IDOR fixed in CVE-2026-57168)\n- Cause denial of service against other tenants' device fleets\n\nThe method also uses HTTP GET for a destructive op\n\nAffected packages: maven:io.openremote:openremote-manager\nPatched: io.openremote:openremote-manager 1.31.0","url":"https://github.com/advisories/GHSA-3h6w-xcw3-9xjj","published_at":"2026-11-20T14:56:58Z","updated_at":"2026-11-20T14:56:59Z","fetched_at":"2026-11-21T19:15:18.416733Z","severity":"high","cvss_score":7.7,"epss":0.00321,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"io.openremote:openremote-manager","vuln_id":"CVE-2026-104885","vuln_ids":["CVE-2026-104885","CVE-2026-54641","CVE-2026-57168","GHSA-3H6W-XCW3-9XJJ"],"tags":["ghsa","maven","CWE-862"],"cluster_id":2019,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2301","html":"https://vulnwatch.ve1ve2.com/item/2301"}},{"id":9098,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-104885: OpenRemote is an open-source internet-of-things platform. Prior to 1.31.0, an authenticated user who obtains another user's MQTT session ID can disconnect that…","summary":"OpenRemote is an open-source internet-of-things platform. Prior to 1.31.0, an authenticated user who obtains another user's MQTT session ID can disconnect that session across realm boundaries through the GET route GET {realm}/disconnect/{sessionID}. In manager/src/main/java/org/openremote/manager/security/UserResourceImpl.java, disconnectUserSession ignores the requested realm and calls mqttBrokerService.disconnectSession(sessionID) without checking session ownership; model/src/main/java/org/openremote/model/security/UserResource.java exposes the route without an @RolesAllowed restriction. The earlier cross-realm read-method guards did not cover this disconnect method, and same-realm users can also disconnect sessions they do not own. Session IDs are not trivially brute-forceable but may be exposed through monitoring, logs, or correlated API calls, and the unauthorized disconnect can disrupt MQTT connectivity across tenant boundaries without directly disclosing session data. This issue is fixed in 1.31.0.\n\nReferences:\nhttps://github.com/openremote/core/commit/51dce18d9e00d671a5e032d942ece186bdada560\nhttps://github.com/openremote/core/releases/tag/1.31.0\nhttps://github.com/openremote/core/security/advisories/GHSA-3h6w-xcw3-9xjj","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104885","published_at":"2026-11-19T20:17:14.333000Z","updated_at":"2026-11-19T20:17:14.470000Z","fetched_at":"2026-11-21T19:15:31.484739Z","severity":"medium","cvss_score":6.3,"epss":0.00321,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-104885","vuln_ids":["CVE-2026-104885","CVE-2026-54641","CVE-2026-57168","GHSA-3H6W-XCW3-9XJJ"],"tags":["CWE-862"],"cluster_id":2020,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9098","html":"https://vulnwatch.ve1ve2.com/item/9098"}}]}