CVE-2026-44423

ShellHub: Cross-tenant IDOR in `GET /api/sessions/:uid` discloses SSH session data

Published May 13, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
ShellHub is a centralized SSH gateway. Prior to 0.24.2, GET /api/sessions/:uid returns the full session object for any authenticated caller, without scoping by the caller's tenant. An authenticated user can read session records (SSH username, device UID, remote IP, terminal type, authenticated flag, timestamps) belonging to any other namespace. This vulnerability is fixed in 0.24.2.

Analysis

AI-generated

Technical impact

A missing tenant scoping check in the GET /api/sessions/:uid endpoint allows an authenticated user to read session records that belong to any other namespace. The exposed data includes SSH usernames, device identifiers, IP addresses, terminal types, authentication status, and timestamps. This information can aid attackers in gathering reconnaissance about other tenants’ environment or facilitate further lateral movement. The weakness is an Insecure Direct Object Reference (CWE‑639).

Affected Systems

ShellHub from shellhub‑io is affected. All releases before version 0.24.2 allow this IDOR. The vulnerability was fixed in 0.24.2, so any installation using an earlier version is vulnerable.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. EPSS data is not available, and the vulnerability is not listed in CISA KEV. The likely exploit requires an attacker to be logged in to the ShellHub instance and to have at least tenant‑level authentication, so the attack surface is limited to authenticated internal users. However, once access is obtained, the disclosure of detailed session information could be leveraged for further attacks or data exfiltration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply ShellHub version 0.24.2 or later to close the IDOR flaw
  • Restrict user permissions so that only authorized tenants can execute GET /api/sessions/:uid by enforcing proper role‑based access controls
  • Audit and monitor API access logs for suspicious cross‑tenant session reads

Generated by OpenCVE AI on May 13, 2026 at 22:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9w9c-9w8m-w89q ShellHub has cross-tenant IDOR in `GET /api/sessions/:uid` that discloses SSH session data
History
Type Values Removed Values Added
First Time appeared Shellhub
Shellhub shellhub
CPEs cpe:2.3:a:shellhub:shellhub:*:*:*:*:*:*:*:*
Vendors & Products Shellhub
Shellhub shellhub
Type Values Removed Values Added
First Time appeared Shellhub-io
Shellhub-io shellhub
Vendors & Products Shellhub-io
Shellhub-io shellhub
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ShellHub is a centralized SSH gateway. Prior to 0.24.2, GET /api/sessions/:uid returns the full session object for any authenticated caller, without scoping by the caller's tenant. An authenticated user can read session records (SSH username, device UID, remote IP, terminal type, authenticated flag, timestamps) belonging to any other namespace. This vulnerability is fixed in 0.24.2.
Title ShellHub: Cross-tenant IDOR in `GET /api/sessions/:uid` discloses SSH session data
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 14, 2026, 12:50 PM
Reserved
May 6, 2026, 2:40 PM
Status
Analyzed
Published
May 13, 2026, 10:16 PM
Modified
Nov 11, 2026, 8:10 PM