{"id":"CVE-2026-58267","summary":"ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner","details":"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.","aliases":["GHSA-ww26-9cqf-x69q"],"modified":"2026-12-02T17:46:09.501988256Z","published":"2026-12-02T15:14:15.808Z","database_specific":{"cwe_ids":["CWE-862"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58267.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58267.json"},{"type":"FIX","url":"https://github.com/shellhub-io/shellhub/commit/3ec88f0ccf058d8327102f89126472af79da83a4"},{"type":"FIX","url":"https://github.com/shellhub-io/shellhub/commit/f374c7302064c49427e8127ffd837f9c615ae315"},{"type":"WEB","url":"https://github.com/shellhub-io/shellhub/releases/tag/v0.26.0-rc.1"},{"type":"ADVISORY","url":"https://github.com/shellhub-io/shellhub/security/advisories/GHSA-ww26-9cqf-x69q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58267"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/shellhub-io/shellhub","events":[{"introduced":"0"},{"fixed":"b0d4c03ce98623948f9b903bfd3ed17a1b16f2b7"},{"fixed":"3ec88f0ccf058d8327102f89126472af79da83a4"},{"fixed":"f374c7302064c49427e8127ffd837f9c615ae315"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.26.0-rc.1"}]},{"range":[{"fixed":"3ec88f0ccf058d8327102f89126472af79da83a4"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"f374c7302064c49427e8127ffd837f9c615ae315"}]},{"original_tag":"v0.26.0-rc.1","range":[{"fixed":"b0d4c03ce98623948f9b903bfd3ed17a1b16f2b7"}],"source":"REFERENCES_TAG"}]}}],"versions":["v0.25.1","v0.25.1-rc.3","v0.25.1-rc.2","v0.25.1-rc.1","v0.25.0","v0.25.0-rc.2","v0.23.0","v0.25.0-rc.1","v0.24.2","v0.21.5","v0.24.1","v0.24.0","v0.24.0-rc.1","v0.23.0-rc.4","v0.23.0-rc.3","v0.23.0-rc.2","v0.23.0-rc.1","v0.22.0","v0.22.0-rc.2","v0.22.0-rc.1","v0.21.4","v0.21.3","v0.21.2","v0.21.1","v0.21.0","v0.21.0-rc.5","v0.21.0-rc.4","v0.21.0-rc.3","v0.21.0-rc.2","v0.21.0-rc.1","v0.20.1","v0.20.1-rc.1","v0.20.0","v0.20.0-rc.5","v0.20.0-rc.4","v0.20.0-rc.3","v0.20.0-rc.2","v0.20.0-rc.1","v0.19.2","v0.19.2-rc.2","v0.19.2-rc.1","v0.19.1","v0.19.1-rc.2","v0.19.1-rc.1","v0.19.0","v0.19.0-rc.9","v0.19.0-rc.8","v0.19.0-rc.7","v0.19.0-rc.6","v0.19.0-rc.5","v0.19.0-rc.4","v0.19.0-rc.3","v0.19.0-rc.2","v0.19.0-rc.1","v0.18.3","v0.18.2","v0.18.2-rc.2","v0.18.2-rc.1","v0.18.1","v0.18.0","v0.18.0-rc.7","v0.18.0-rc.6","v0.18.0-rc.5","v0.18.0-rc.4","v0.18.0-rc.3","v0.18.0-rc.2","v0.18.0-rc.1","v0.17.2","v0.17.2-rc.3","v0.17.2-rc.2","v0.17.2-rc.1","v0.17.1","v0.17.1-rc.1","v0.17.0","v0.17.0-rc.4","v0.17.0-rc.3","v0.17.0-rc.2","v0.17.0-rc.1","v0.16.0","v0.16.0-rc.2","v0.16.0-rc.1","v0.15.2-rc.1","v0.15.1","v0.15.1-rc.3","v0.15.1-rc.2","v0.15.1-rc.1","v0.15.0","v0.15.0-rc.6","v0.15.0-rc.5","v0.15.0-rc.4","v0.15.0-rc.3","v0.15.0-rc.2","v0.15.0-rc.1","v0.14.3","v0.14.3-rc.1","v0.14.2","v0.14.1","v0.14.0","v0.14.0-rc.7","v0.14.0-rc.6","v0.14.0-rc.5","v0.14.0-rc.4","v0.14.0-rc.3","v0.14.0-rc.2","v0.14.0-rc.1","v0.13.6","v0.13.6-rc.3","v0.13.6-rc.2","v0.13.6-rc.1","v0.13.5","v0.13.5-rc.2","v0.13.5-rc.1","v0.13.4","api/v0.13.4","v0.13.4-rc.2","v0.13.4-rc.1","v0.13.3","v0.13.3-rc.1","v0.13.2","api/v0.13.2","v0.13.1","v0.13.0","api/v0.13.0","v0.13.0-rc.12","api/v0.13.0-rc.12","v0.13.0-rc.11","api/v0.13.0-rc.11","api/v0.13.0-rc.10","v0.13.0-rc.10","v0.13.0-rc.9","v0.13.0-rc.8","v0.13.0-rc.7","v0.13.0-rc.6","v0.13.0-rc.5","v0.13.0-rc.4","v0.13.0-rc.3","v0.13.0-rc.2","v0.13.0-rc.1","v0.12.5","v0.12.5-rc.11","v0.12.5-rc.10","v0.12.5-rc.9","v0.12.5-rc.8","v0.12.5-rc.7","v0.12.5-rc.6","v0.12.5-rc.5","v0.12.5-rc.4","v0.12.5-rc.3","v0.12.5-rc.2","v0.12.5-rc.1","v0.12.4","v0.12.4-rc.5","v0.12.4-rc.4","v0.12.4-rc.3","v0.12.4-rc.2","v0.12.4-rc.1","api/v0.12.4-rc.1","v0.12.3","v0.12.2","v0.12.2-rc.6","v0.12.2-rc.5","v0.12.2-rc.4","v0.12.2-rc.3","v0.12.2-rc.2","v0.12.2-rc.1","v0.12.1","v0.12.1-rc.3","v0.12.1-rc.2","v0.12.1-rc.1","api/v0.12.1-rc.1","v0.12.0","v0.12.0-rc.4","v0.12.0-rc.3","v0.12.0-rc.2","v0.12.0-rc.1","v0.11.8","v0.11.8-rc.5","v0.11.8-rc.4","v0.11.8-rc.3","v0.11.8-rc.2","v0.11.8-rc.1","v0.11.7","v0.11.7-rc.8","v0.11.7-rc.7","v0.11.7-rc.6","v0.11.7-rc.5","v0.11.7-rc.4","v0.11.7-rc.3","v0.11.7-rc.2","v0.11.7-rc.1","v0.11.6","v0.11.5","v0.11.4","v0.11.3","v0.11.3-rc.2","v0.11.3-rc.1","v0.11.2","v0.11.2-rc.1","v0.11.1","v0.11.1-rc.1","v0.11.0","v0.11.0-rc.8","v0.11.0-rc.7","v0.11.0-rc.6","v0.11.0-rc.5","v0.11.0-rc.4","v0.11.0-rc.3","v0.11.0-rc.2","v0.11.0-rc.1","v0.10.10","v0.10.10-rc.3","v0.10.10-rc.2","v0.10.10-rc.1","v0.10.9","v0.10.9-rc.3","v0.10.9-rc.2","v0.10.9-rc.1","v0.10.8","v0.10.8-rc.1","v0.10.7","v0.10.7-rc.5","v0.10.7-rc.4","v0.10.7-rc.3","v0.10.7-rc.2","v0.10.7-rc.1","v0.10.6","v0.10.5","v0.10.5-rc.3","v0.10.5-rc.2","v0.10.5-rc.1","v0.10.2","v0.10.2-rc.2","v0.10.2-rc.1","v0.10.1","v0.10.1-rc.1","v0.10.0","v0.10.0-rc.3","v0.10.0-rc.2","v0.10.0-rc.1","v0.9.6-rc.2","v0.9.6-rc.1","v0.9.3","v0.9.3-rc.4","v0.9.3-rc.3","v0.9.3-rc.2","v0.9.3-rc.1","v0.9.2","v0.9.2-rc.2","v0.9.2-rc.1","v0.9.1","v0.9.1-rc.8","v0.9.1-rc.7","v0.9.1-rc.6","v0.9.1-rc.5","v0.9.1-rc.4","v0.9.1-rc.3","v0.9.1-rc.2","v0.9.1-rc.1","api/v0.9.1-rc.1","v0.9.0","v0.8.3-rc.5","v0.8.3-rc.4","v0.8.3-rc.3","v0.8.3-rc.2","v0.8.3-rc.1","v0.8.2","api/v0.8.2","v0.8.2-rc.6","v0.8.2-rc.5","v0.8.2-rc.4","v0.8.2-rc.3","api/v0.8.2-rc.3","v0.8.2-rc.2","v0.8.2-rc.1","v0.8.1","v0.8.0-rc.7","v0.8.0-rc.6","v0.8.0-rc.5","v0.8.0-rc.4","v0.8.0-rc.3","v0.8.0-rc.2","v0.8.0-rc.1","v0.7.3","v0.7.2","v0.7.1-rc.3","v0.7.1-rc.2","v0.7.1-rc.1","v0.7.0","api/v0.7.0","v0.6.4","api/v0.6.4","v0.6.3","api/v0.6.3","v0.6.2","api/v0.6.2","v0.6.1","api/v0.6.1","v0.6.0","api/v0.6.0","v0.6.0-rc.3","v0.6.0-rc.2","v0.5.3-rc.5","v0.6.0-rc.1","v0.5.3-rc.4","v0.5.3-rc.3","v0.5.3-rc.2","v0.5.3-rc.1","v0.5.2","v0.5.1","v0.5.0-rc.4","v0.5.0","v0.5.0-rc.3","v0.5.0-rc.2","v0.5.0-rc.1","v0.4.3-rc.1","api/v0.4.3-rc.1","v0.4.2","api/v0.4.2","v0.4.1","v0.4.0","v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.6","v0.2.5","v0.2.4","v0.3.0-rc.2","v0.2.3","v0.3.0-rc.1","v0.2.2","v0.2.1","v0.2.0","v0.1.1","v0.1.0","v0.0.5","v0.0.4","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58267.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"}]}