Skip to content

CVE-2026-44426 ShellHub: Cross-tenant IDOR in `GET /api/namespaces/:tenant` via API Key bypasses membership check

MediumCVSS 6.5 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
shellhub < 0.24.2 0.24.2 Fixed
shellhub-io github.com/shellhub-io/shellhub(Go) < 0.24.2; <= 0.24.1 0.24.2 Fixed
shellhub-io github.com/shellhub-io/shellhub = < 0.24.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
shellhub-io github.com/shellhub-io/shellhub(Go) < 0.24.2 0.24.2
shellhub-io github.com/shellhub-io/shellhub = < 0.24.2 No fix listed
shellhub-io github.com/shellhub-io/shellhub(Go) <= 0.24.1 No fix listed
shellhub < 0.24.2 0.24.2

References