GO-2026-5680: ShellHub: Cross-tenant IDOR in `GET /api/namespaces/:tenant` via API Key bypasses membership check
ShellHub is a centralized SSH gateway. Prior to 0.24.2, GET /api/namespaces/:tenant returns the full namespace object — including the members list (user IDs, e-mails, roles), settings, and device counts — to any caller authenticated by an API Key, for any tenant, regardless of the API Key's own tenant scope. The handler conditionally skips the membership check when the user ID (X-ID) is absent, which is exactly the case for API Key authentication. This vulnerability is fixed in 0.24.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ShellHubto a version that resolves this vulnerability.Fixed in 0.24.2
Event History
Frequently Asked Questions
Who can exploit this issue?
Any caller authenticated with a ShellHub API Key can query namespace objects for tenants outside that API Key's intended tenant scope. The API Key does not need to belong to, or have membership in, the targeted tenant.
What information can be exposed?
The affected endpoint returns the full namespace object, including its members list with user IDs, e-mail addresses, and roles, along with namespace settings and device counts.
Are API Key-authenticated deployments affected by default?
The issue specifically affects requests authenticated by API Key because that authentication path has no X-ID user identifier, causing the handler to skip its membership check. Versions before 0.24.2 are affected.
What should be done if an immediate upgrade is not possible?
The provided information identifies 0.24.2 as the fixed version. No alternative mitigation is specified.