CVE-2026-58267: ShellHub Missing Authorization
Published 2026-12-02 · Updated 2026-12-02 · Source security-advisories@github.com
Not known to be exploited · medium severity — update ShellHub to 0.26.0-rc.1 or later on your normal schedule.
What to do
- Update ShellHub to version 0.26.0-rc.1 or later. Versions before 0.26.0-rc.1 are affected.
- Until it is patched, restrict network access to ShellHub and review which accounts can log in to it.
- Restrict access to the affected feature and review logs for use by accounts that should not have it.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| ShellHub | < 0.26.0-rc.1 | 0.26.0-rc.1 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker needs an ordinary low-privileged account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on integrity is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | Low | The attacker needs an ordinary low-privileged account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness: Missing Authorization
The software performs an action without checking that the caller is allowed to, so lower-privileged or anonymous users can use it.
Classified as CWE-862.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/shellhub-io/shellhub/commit/3ec88f0ccf058d8327102f89126472af79da83a4
- Patchhttps://github.com/shellhub-io/shellhub/commit/f374c7302064c49427e8127ffd837f9c615ae315
- Patchhttps://github.com/shellhub-io/shellhub/releases/tag/v0.26.0-rc.1
- Advisoryhttps://github.com/shellhub-io/shellhub/security/advisories/GHSA-ww26-9cqf-x69q
- Advisoryhttps://github.com/shellhub-io/shellhub/security/advisories/GHSA-ww26-9cqf-x69q