AgentbeamBeta
Open-source package vulnerability · PyPI

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

criticalCVSS 3.1 9.8ExploitedGHSA-gj9m-f8ph-pmhr

GPUStack, the open-source GPU cluster manager for AI model serving, lets an unauthenticated remote attacker act as the built-in administrator in versions before 2.2.0. The auth code trusts any request that looks like it came from loopback, and that is easy to fake. Attackers have already used it against a 2.1.1 deployment. Upgrade to 2.2.0.

Published Nov 9, 2026 · Analysis Nov 9, 2026

What an attacker can do

In get_current_user in gpustack/api/auth.py, a request from a loopback address is treated as the built-in administrator whenever force_auth_localhost is false, which is the default. Two routes make a remote request look local. If a reverse proxy runs on the same host and connects to GPUStack at 127.0.0.1, every proxied request arrives from loopback. Or the client simply sends an X-GPUStack-Real-IP: 127.0.0.1 header, which client_ip_getter accepted.

Once in as admin, the attacker can change users and models, create persistent administrator API keys, and read worker and cloud-provider secrets. The endpoint POST /v2/inference-backends/from-yaml gives code execution on worker hosts. The advisory says attackers created custom backends that ran reverse shells.

The attacker needs only network access to the GPUStack API. No account and no user interaction are needed. A GPU cluster often holds cloud credentials and model weights, so a break-in can spread past the GPUStack host.

Who is affected

All GPUStack versions before 2.2.0. The flaw is in the default configuration, where force_auth_localhost is false. Deployments behind a same-host reverse proxy are exposed without any forged header. The advisory lists no pip package entry, so check the version in the GPUStack UI or through the installed package:

pip show gpustack

For container installs, check the image tag.

gpustack

Ecosystem
PyPI
Affected
< 2.2.0
Fixed in
2.2.0
Check
pip show gpustack

How to fix it

Upgrade to GPUStack 2.2.0. It removes the loopback auto-admin path and hardens the client-IP and forwarding-header handling. The advisory says to accept a real-client-IP header only from an authenticated, trusted gateway.

If you cannot upgrade yet, the advisory gives these mitigations:

  • Set force_auth_localhost=true so loopback requests must authenticate.
  • Strip client-supplied X-GPUStack-Real-IP headers at the edge, and make sure the proxy cannot make outside traffic appear as loopback.
  • Keep the API off untrusted networks, for example behind a VPN or edge authentication.

CISA added this to the KEV catalog on 2026-11-09 with a due date of 2026-11-12. The date binds US federal agencies. CISA's action is to apply vendor mitigations under BOD 26-04 and its forensics triage requirements, or stop using the product if mitigations are not available.

CISA required action: 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.

How to tell if you were hit

The advisory lists no fixed indicators. Look for what the attack leaves behind: custom inference backends you did not create, administrator API keys you do not recognize, new or changed users, and requests with an X-GPUStack-Real-IP header from outside. On worker hosts, check for unexpected outbound connections and reverse-shell processes. If you ran an affected version on a reachable network, rotate worker and cloud-provider secrets as well.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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).

Credited to nikkoenggaliano, Shadowoyz.

Questions

Is GPUStack CVE-2026-102895 exploited in the wild?

Yes. The advisory reports exploitation against a 2.1.1 deployment, where attackers created custom backends that ran reverse shells. CISA added it to the KEV catalog on 2026-11-09.

Do I need a reverse proxy to be vulnerable?

No. A same-host proxy makes every request look local, but an attacker can also send the header X-GPUStack-Real-IP set to 127.0.0.1 directly. Both work while force_auth_localhost is false.

Does setting force_auth_localhost=true fix it?

The advisory lists it as a pre-upgrade mitigation, along with stripping the header at the edge. The fix is version 2.2.0, which removes the loopback auto-admin path.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

Coverage on the Beam blog

More PyPI vulnerabilities

All PyPI entries