CVE-2026-58267: ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner

Published Dec 2, 2026
·
Updated

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

1 affected component
ShellHub ShellHub<0.26.0-rc.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.26.0-rc.1

Event History

Dec 2, 2026
CVE Published
via MITRE·03:14 PM
Data Sourced
via MITRE·03:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203