ShellHub Cross-Tenant Information Disclosure Vulnerability in Device Metadata API

Vulnerability

A cross-tenant information disclosure vulnerability has been identified in ShellHub, a centralized SSH gateway, in versions prior to 0.24.2. The issue arises in the `GET /api/devices/:uid` endpoint, which returns the full device object to any authenticated user, regardless of whether the device belongs to the user's namespace. This vulnerability allows an authenticated user with knowledge of a device UID to access device metadata from other namespaces.

Impact

Exploitation of this vulnerability leads to unauthorized access to device metadata from other namespaces, including the device's hostname, MAC address, operating system information, public SSH key, namespace name, last-seen timestamp, and remote address. This cross-tenant data exposure could facilitate enumeration of namespaces, inventory of devices in other tenants, and targeted follow-up attacks.

Reproduction

To reproduce this vulnerability, an authenticated user must send a request to the `GET /api/devices/:uid` endpoint with a valid device UID that belongs to a different namespace. The request must include an authorization token. The response will include the full device metadata, demonstrating the cross-tenant information disclosure.

Remediation

Users should update to ShellHub version 0.24.2 or later, where this vulnerability has been fixed.

Added: May 13, 2026, 10:27 PM
Updated: May 13, 2026, 10:27 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
6.6
remediation
0.0
relevance
8.2
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.