Vulnerabilities in pkg:golang/github.com/shellhub-io/shellhub
PACKAGECVE-2026-44423 is a MODERATE (CVSS 6.5) uid` that discloses ssh session vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Github.com/shellhub io/shellhub libraries in the Go ecosystem. The issue involves uid` that discloses ssh session data. Remediation is available by upgrading affected packages to version 0.24.2.
pkg:golang/github.com/shellhub-io/shellhub
Vulnerability advisories affecting package pkg:golang/github.com/shellhub-io/shellhub. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9w9c-9w8m-w89q | CVE-2026-44423 | MODERATE | ShellHub has cross-tenant IDOR in `GET /api/sessions/:uid` that discloses SSH session data |
| GHSA-vwx9-7qcf-gg7f | CVE-2026-44426 | MODERATE | ShellHub has cross-tenant IDOR in `GET /api/namespaces/:tenant` via API Key bypasses membership check |
| GHSA-47r2-v3x6-wff9 | CVE-2026-44425 | MODERATE | ShellHub has crash-DoS via field injection in filter and sort-by parameters |
| GHSA-j72x-xfwg-783f | CVE-2026-44424 | MODERATE | ShellHub has cross-tenant IDOR in `GET /api/devices/:uid` that discloses device data of any namespace |
CVE-2026-44423 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-44423
To remediate this vulnerability, upgrade all affected Github.com/shellhub io/shellhub dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/shellhub-io/shellhub to 0.24.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/shellhub-io/shellhub
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-44423, inspect your project dependencies for Github.com/shellhub io/shellhub:
inspect dependencies for github.com/shellhub-io/shellhub
Analyze the terminal output to locate any version of Github.com/shellhub io/shellhub in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.24.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Github.com/shellhub io/shellhub, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44423 Affected Github.com/shellhub io/shellhub Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/shellhub-io/shellhub
|
Go |
< 0.24.2
|
0.24.2
|
References
Frequently Asked Questions
What is CVE-2026-44423?
Which Github.com/shellhub io/shellhub versions are affected?
What version fixes CVE-2026-44423?
Is github.com/shellhub-io/shellhub affected?
What is the CVSS score of CVE-2026-44423?
What CWE is associated with CVE-2026-44423?
How can I check Go dependencies for CVE-2026-44423?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9w9c-9w8m-w89q",
"modified" : "2026-07-21T13:57:29Z",
"published" : "2026-05-06T23:22:39Z",
"aliases" : [ "CVE-2026-44423" ],
"summary" : "ShellHub has cross-tenant IDOR in `GET /api/sessions/:uid` that discloses SSH session data",
"details" : "## Summary\n`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.\n\n## Severity\n**CVSS 3.1: 7.5 (High)** \nCWE-639\n\n## Affected versions\nShellHub Community v0.24.1 (by code inspection — same vulnerable pattern as `GetDevice`). Not plant-reproducible without an active SSH session, but the flaw is structurally identical and confirmed via static analysis.\n\n## Root cause\n`api/services/session.go:37-44` — `GetSession` resolves the session by UID without any tenant filter:\n\n ```go\n func (s *service) GetSession(ctx context.Context, uid models.UID) (*models.Session, error) {\n session, err := s.store.SessionResolve(ctx, store.SessionUIDResolver, string(uid))\n // ⚠️ missing: s.store.Options().InNamespace(tenant)\n ...\n }\n ```\n\nThe `Authorize` middleware only verifies presence of a tenant in the context, not ownership of the requested session.\n\n## Proof of concept\n\nPre-requisite: attacker has any valid user account and has obtained a session UID from the victim tenant (UIDs may leak via logs, shared session recordings, UI URLs, or through the device IDOR in the companion advisory since sessions reference devices by UID).\n\n ```bash\n ATTACKER_TOKEN=$(curl -s -X POST http://target/api/login \\\n -H 'Content-Type: application/json' \\\n -d '{\"username\":\"attacker\",\"password\":\"...\"}' | jq -r .token)\n\n # Attempt cross-tenant read\n curl -i \"http://target/api/sessions/<victim-session-uid>\" \\\n -H \"Authorization: Bearer $ATTACKER_TOKEN\"\n # Expected (fixed): HTTP 403/404\n # Observed (v0.24.1): HTTP 200 + full session JSON\n ```\n\n## Impact\n - Cross-tenant disclosure of SSH session data: target username, device UID, remote IP, authenticated status, session type, terminal, position (geolocation), started_at / last_seen timestamps.\n - Enables reconnaissance of other tenants' active users and systems; combined with session recording features, can enable deeper recon.\n\n## Suggested fix\n`api/services/session.go` — apply `InNamespace` in `GetSession`:\n\n ```go\n func (s *service) GetSession(ctx context.Context, uid models.UID) (*models.Session, error) {\n tenant := gateway.TenantFromContext(ctx)\n opts := []store.QueryOption{}\n if tenant != nil {\n opts = append(opts, s.store.Options().InNamespace(tenant.ID))\n }\n session, err := s.store.SessionResolve(ctx, store.SessionUIDResolver, string(uid), opts...)\n ...\n }\n ```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/shellhub-io/shellhub"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.24.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.24.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/shellhub-io/shellhub/security/advisories/GHSA-9w9c-9w8m-w89q"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44423"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/shellhub-io/shellhub"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-06T23:22:39Z",
"nvd_published_at" : "2026-05-13T22:16:44Z"
}
}