CISA KEV: exploited in the wild CRITICAL · CVSS 3.1 9.8 EPSS 8.5% · 96th percentile CWE-287CWE-290CWE-346

CVE-2026-102895: GPUStack: Authentication bypass via trusted loopback source (reverse-proxy TCP peer or X-GPUStack-Real-IP header) grants unauthenticated admin

Published 2026-11-09 · Updated 2026-11-09 · Also known as GHSA-gj9m-f8ph-pmhr

Summary

GPUStack before v2.2.0 contains an authentication bypass flaw where loopback requests are incorrectly granted full administrative privileges. All administrators of self-hosted GPUStack instances must update to version 2.2.0 or later immediately.

Who is affected

The vulnerability allows unauthenticated attackers to gain full administrative control over GPUStack, including API key generation and system configuration modification. This occurs because the application incorrectly trusts requests originating from the loopback address or those containing a forged X-GPUStack-Real-IP header. Remote code execution is possible by leveraging administrative endpoints such as backend creation.

Exploitability

This vulnerability is critical, carrying a CVSS base score of 9.8, and is listed in the CISA Known Exploited Vulnerabilities catalog as actively exploited in the wild. With an EPSS score of 0.057, the likelihood of exploitation is significant, and the low attack complexity makes it trivial for remote attackers to gain unauthorized access.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI gpustack >= 0, < 2.2.0 2.2.0 python -m pip install 'gpustack>=2.2.0'

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CISA Known Exploited Vulnerabilities

Added 2026-11-09 · Federal remediation due 2026-11-12 · Known ransomware use: Unknown

Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

FAQ

Is this vulnerability actively being exploited?

Yes, this vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog, confirming it has been used in actual attacks.

What is the primary cause of this security flaw?

The application incorrectly relies on network source information-specifically loopback socket peers and client-controlled headers-to authenticate administrative users.

Can I prevent this without upgrading?

You can mitigate the risk by setting 'force_auth_localhost' to true and strictly filtering incoming headers at your reverse proxy, though upgrading to version 2.2.0 is the recommended permanent solution.

Original advisory description
### Impact In GPUStack before v2.2.0, `get_current_user` (in `gpustack/api/auth.py`) promotes any request whose source is considered loopback to the built-in administrator account when `force_auth_localhost` is `False` (the default). The "source" is derived by `client_ip_getter`, which can be made to report `127.0.0.1` without any credentials in two ways: 1. **Same-host reverse proxy (TCP peer).** In the canonical self-hosted shape - GPUStack behind a same-host reverse proxy with `proxy_pass http://127.0.0.1:<port>` - every remote request arrives at GPUStack with TCP peer `127.0.0.1`, so the loopback auto-admin branch fires. No header or credential is required. Verified end-to-end against HEAD `6bee5883`. 2. **`X-GPUStack-Real-IP` header.** A forged `X-GPUStack-Real-IP: 127.0.0.1` header can cause the request source to be treated as loopback. Either path yields **full, unauthenticated administrative access** over the network: enumerate and modify users, models, workers, and configuration; mint persistent admin API keys (scope `["*"]`, valid from any source IP thereafter); read worker credentials and cloud/provider secrets. Combined with admin-only functionality such as `POST /v2/inference-backends/from yaml`, this leads to code execution on worker hosts. This vulnerability has been observed exploited in the wild against a v2.1.1 deployment (attacker-created custom backends running reverse shells). ### Root cause Trusting the network source of a request (socket peer, or a client-controllable header) as an authentication signal. When GPUStack is fronted by a same-host reverse proxy, the socket peer is always loopback, so the "localhost is trusted" assumption no longer holds. ### Patches Fixed in `gpustack` `2.2.0`: the loopback auto-admin path was removed and client-IP / forwarding-header handling was hardened. Upgrade to `2.2.0` or later. ### Workarounds - Set `force_auth_localhost=true` to require authentication even for loopback requests. - Ensure the reverse proxy / gateway cannot cause GPUStack to treat external traffic as loopback, and strip any client-supplied `X-GPUStack-Real-IP` header at the edge. - Keep the API off untrusted networks (VPN / edge authentication). ### Remediation (in the fix) Do not derive authentication from the request's network source. Remove implicit loopback-based admin, and only accept a real client-IP header from an authenticated/trusted gateway (never from arbitrary clients). ### Credit Independently reported by Nikko Enggaliano; Wei Yunzhou; and Rui Yang & Haoyu Wang (Johns Hopkins University). Active in the-wild exploitation was reported by Javier Sixto (ulex.fr).

References

Source records: GHSA-gj9m-f8ph-pmhr (OSV.dev) · EPSS by FIRST, 2026-11-26 · CISA KEV catalogue.