CVE-2026-65700

CRITICAL

h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API

Title source: cna
STIX 2.1

Description

h2oGPT through 0.2.1 contains a path traversal vulnerability in the OpenAI-compatible files API that allows unauthenticated remote attackers to read, write, and delete arbitrary files accessible to the server process by supplying traversal sequences in the bearer token. The get_user_dir function in openai_server/backend_utils.py uses the bearer token string unsanitized as a path component via os.path.join, and because the default API key is EMPTY authentication is bypassed, enabling attackers to traverse outside the intended user directory through the file content, delete, and upload endpoints to achieve remote code execution by writing to startup hooks or application-loaded files.

References (2)

Core 2
Core References
Exploit technical-description exploit
Researcher Disclosure
https://github.com/geo-chen/oss/blob/main/h2ogpt.md

Scores

CVSS v3 9.8
EPSS 0.0127
EPSS Percentile 66.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-22
Status published
Products (1)
h2oai/h2ogpt < 0.2.1
Published Jul 23, 2026
Tracked Since Jul 23, 2026