{"id":"CVE-2026-58267","aliases":["EUVD-2026-141460","GHSA-ww26-9cqf-x69q"],"status":"published","title":"ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner","description":"ShellHub is an SSH gateway. Prior to version 0.26.0-rc.1, UpdateNamespaceMember in api/services/member.go checks whether the caller has authority over the requested new role but never checks whether the caller has authority over the target member's current role. A namespace administrator can demote the namespace owner to observer with one authenticated PATCH request. The demotion cannot be reversed through the API: HasAuthority(RoleOwner) returns false unconditionally for all roles, including administrator. Restoring the owner role requires direct database access. This issue has been patched in version 0.26.0-rc.1.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00681,"percentile":0.53832,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false,"poc_reported":true},"cwes":["CWE-862"],"published":"2026-12-02T15:14:15Z","modified":"2026-12-03T21:02:29Z","products":[{"vendor":"shellhub-io","product":"shellhub"}],"references":[{"url":"https://github.com/shellhub-io/shellhub/security/advisories/GHSA-ww26-9cqf-x69q","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/shellhub-io/shellhub/commit/3ec88f0ccf058d8327102f89126472af79da83a4","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/shellhub-io/shellhub/commit/f374c7302064c49427e8127ffd837f9c615ae315","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/shellhub-io/shellhub/releases/tag/v0.26.0-rc.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58267.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58267","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-58267","title":"ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner","description":"ShellHub is an SSH gateway. Prior to version 0.26.0-rc.1, UpdateNamespaceMember in api/services/member.go checks whether the caller has authority over the requested new role but never checks whether the caller has authority over the target member's current role. A namespace administrator can demote the namespace owner to observer with one authenticated PATCH request. The demotion cannot be reversed through the API: HasAuthority(RoleOwner) returns false unconditionally for all roles, including administrator. Restoring the owner role requires direct database access. This issue has been patched in version 0.26.0-rc.1.","status":"published","published":"2026-12-02T15:14:15.808Z","modified":"2026-12-02T16:16:31.82Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-862"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T16:32:24.283976Z"}],"euvd":[{"id":"EUVD-2026-141460","description":"ShellHub is an SSH gateway. Prior to version 0.26.0-rc.1, UpdateNamespaceMember in api/services/member.go checks whether the caller has authority over the requested new role but never checks whether the caller has authority over the target member's current role. A namespace administrator can demote the namespace owner to observer with one authenticated PATCH request. The demotion cannot be reversed through the API: HasAuthority(RoleOwner) returns false unconditionally for all roles, including administrator. Restoring the owner role requires direct database access. This issue has been patched in version 0.26.0-rc.1.","status":"published","published":"2026-12-02T15:14:15Z","modified":"2026-12-02T16:16:31Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-12-02T16:25:44.376795Z"}],"nvd":[{"id":"CVE-2026-58267","description":"ShellHub is an SSH gateway. Prior to version 0.26.0-rc.1, UpdateNamespaceMember in api/services/member.go checks whether the caller has authority over the requested new role but never checks whether the caller has authority over the target member's current role. A namespace administrator can demote the namespace owner to observer with one authenticated PATCH request. The demotion cannot be reversed through the API: HasAuthority(RoleOwner) returns false unconditionally for all roles, including administrator. Restoring the owner role requires direct database access. This issue has been patched in version 0.26.0-rc.1.","status":"published","published":"2026-12-02T16:17:54.967Z","modified":"2026-12-02T17:18:05.98Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-862"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T17:24:49.74521Z"}],"osv":[{"id":"CVE-2026-58267","title":"ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner","description":"ShellHub is an SSH gateway. Prior to version 0.26.0-rc.1, UpdateNamespaceMember in api/services/member.go checks whether the caller has authority over the requested new role but never checks whether the caller has authority over the target member's current role. A namespace administrator can demote the namespace owner to observer with one authenticated PATCH request. The demotion cannot be reversed through the API: HasAuthority(RoleOwner) returns false unconditionally for all roles, including administrator. Restoring the owner role requires direct database access. This issue has been patched in version 0.26.0-rc.1.","status":"published","published":"2026-12-02T15:14:15.808Z","modified":"2026-12-03T21:02:29.625238913Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-862"],"updated_at":"2026-12-03T21:09:18.07392Z"}]}}
