CVE-2026-65700
CriticalCVSS 9.8Exploitation Probability (EPSS)
Elevated risk67th percentile - higher than 67% of all known CVEs
Summary
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. The get_user_dir function uses the bearer token unsanitized as a path component, and the default API key is empty, bypassing authentication. Attackers can achieve remote code execution by writing to startup files.
Risk Assessment
An unauthenticated attacker can take over the h2oGPT server, access all files, and execute arbitrary code, leading to full system compromise.
Recommendation
Upgrade h2oGPT to a version above 0.2.1 immediately and set a strong API key to prevent unauthenticated access.
Original NVD description (English source)
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.

