CVE-2026-65700CWE-22

h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API

Critical · published July 23, 2026

CVSS v4.0
9.3
EPSS
2%
Percentile
74.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.01517 · 74.3th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-07-23T17:02Z
EPSS history
Timeline
  • 23 JUL 17:02Z
    h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API
    cvelistv5