CVE-2026-58267: ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.26.0-rc.1
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated namespace administrator can exploit it. No user interaction is required, and the attack can be performed with a PATCH request to the member-update functionality.
Which deployments are affected?
ShellHub versions prior to 0.26.0-rc.1 are affected. The issue concerns namespaces where an administrator account can manage members.
What is the operational impact of exploitation?
The administrator can demote the namespace owner to observer. The owner role cannot be restored through the API, including by an administrator, so recovery requires direct database access.
What should be done if upgrading cannot happen immediately?
Restrict and review namespace administrator access, because administrator accounts can perform the demotion. If an owner has already been demoted, restore the owner role using direct database access.