CVE-2026-102895: GPUStack Authentication Bypass Leads to Unauthenticated Admin Access

GPUStack before 2.2.0 treats requests from reverse proxies or spoofed loopback addresses as administrator when authentication is disabled locally by default. An attacker can gain full administrative access, create persistent API keys, steal secrets, and execute arbitrary code without any c

Share

GPUStack's default configuration assumed loopback requests were from the local administrator. The vulnerability allows remote attackers to spoof loopback origin by leveraging client_ip_getter logic that accepts reverse-proxy peer addresses or client-supplied X-GPUStack-Real-IP headers containing 127.0.0.1. This bypass was actively exploited against GPUStack 2.1.1 deployments in the wild, giving attackers full cluster control including user management, model deployment, and secrets access.

CVECVE-2026-102895
SeverityCritical (CVSS 9.8)
Actively exploitedYes, listed in CISA's Known Exploited Vulnerabilities catalog on 9 Nov 2026
CISA remediation deadline12 Nov 2026
WeaknessCWE-287 (improper authentication), CWE-290 (authentication bypass by spoofing), CWE-346
Attack vectorNetwork
Privileges requiredNone
User interactionNone
Published4 Nov 2026

How the attack works

When force_auth_localhost is false (the default), get_current_user in gpustack/api/auth.py treats any request appearing to come from 127.0.0.1 as the built-in administrator, skipping authentication. An attacker proxies a request through a same-host reverse proxy or sends a crafted X-GPUStack-Real-IP header set to 127.0.0.1 to appear local. The server then grants administrative privileges, allowing arbitrary user creation, model changes, API-key generation, secret theft, and code execution via the /v2/inference-backends/from-yaml endpoint.

Who is affected

Organizations running GPUStack before version 2.2.0, particularly those exposed to untrusted networks or using reverse proxies. Affected versions include all releases prior to 2.2.0.

Affected products listed:

  • Gpustack (before 2.2.0)

How to check if you're exposed

  • Query running services for GPUStack version (check /version or package manager); alert on any version before 2.2.0
  • Review network access logs for X-GPUStack-Real-IP headers set to 127.0.0.1 or requests from unexpected reverse-proxy peers
  • Check GPUStack configuration for force_auth_localhost setting; if absent or false, the system is vulnerable
  • Search API audit logs for unauthenticated POST requests to /v2/inference-backends/from-yaml or user/model management endpoints

How to fix it

  • Upgrade GPUStack to version 2.2.0 or later immediately
  • After upgrade, verify force_auth_localhost is enabled in configuration and restart the service
  • Rotate all GPUStack API keys and review for unauthorized administrative keys created during the vulnerable period
  • Audit user accounts, deployed models, and worker/cloud-provider secret access; reset any exposed credentials

If you can't patch yet

  • Restrict network access to GPUStack API to trusted internal networks only; do not expose to untrusted internet-facing networks
  • Disable or remove X-GPUStack-Real-IP header processing at any reverse proxy until patched
  • Enable force_auth_localhost=true in configuration to require authentication even for loopback requests, then restart the service

Need help checking your exposure or patching at scale? FutureOps InfoTech can help.

Read more