# GPUStack treats any request that looks like localhost as the administrator

Source: https://startwithidentity.com/cves/cve-2026-102895/
Last updated: 2026-11-23
License: content by Start with Identity. Cite the source URL.

---

## What broke

GPUStack is an open-source cluster manager for serving AI models on GPU hosts. Its advisory GHSA-gj9m-f8ph-pmhr, published July 31, 2026, says that before 2.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. Two things made remote requests count as loopback. Behind a same-host reverse proxy, every request arrives from `127.0.0.1`, so "no header or credential is required." And a client could send `X-GPUStack-Real-IP: 127.0.0.1` itself. The result was full administrative access: managing users and models, reading worker and cloud-provider secrets, and minting persistent admin [API keys](https://startwithidentity.com/glossary/api-key/) with scope `["*"]` that work from any address. NVD scores it CVSS 3.1 9.8 and lists CWE-287, CWE-290 and CWE-346.

The advisory says the flaw "has been observed exploited in the wild against a v2.1.1 deployment," with attacker-created custom inference backends running reverse shells through `POST /v2/inference-backends/from-yaml`. CISA added it to KEV on November 9, 2026, 101 days after the advisory.

## Why it matters

The network source of a request is not an identity. "Localhost is trusted" assumes nothing else shares the host, and a reverse proxy on the same machine breaks that assumption silently, while a header the client sets is the client's word for who it is. The advisory's own root cause line is "Trusting the network source of a request ... as an authentication signal." The persistent admin key the bypass could mint also outlives the fix: an attacker who created one keeps access after the upgrade unless someone revokes it.

## What to do

- Upgrade GPUStack to 2.2.0 or later, which removes the loopback auto-admin path.
- Until then, set `force_auth_localhost=true`, strip any client-supplied `X-GPUStack-Real-IP` header at the edge, and keep the API off untrusted networks.

## After you patch

- List API keys and revoke any you did not create, especially admin keys with scope `*`. Review users and custom inference backends for ones you did not add.
- Rotate worker credentials and the cloud and model-provider secrets GPUStack stores, and check worker hosts for reverse shells.

## Sources

- [NVD: CVE-2026-102895](https://nvd.nist.gov/vuln/detail/cve-2026-102895)
- [GPUStack security advisory GHSA-gj9m-f8ph-pmhr](https://github.com/gpustack/gpustack/security/advisories/GHSA-gj9m-f8ph-pmhr)
- [GPUStack v2.2.0 release](https://github.com/gpustack/gpustack/releases/tag/v2.2.0)
- [CISA Known Exploited Vulnerabilities catalog, added November 9, 2026](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-102895)
