CVE-2026-58267 PUBLISHED

ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner

Assigner: GitHub_M
Reserved: 29.06.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CVSS Score: 6.5

Product Status

Vendor shellhub-io
Product shellhub
Versions
  • Version < 0.26.0-rc.1 is affected

References

Problem Types

  • CWE-862: Missing Authorization CWE