What’s Vulnerable › Vulnerabilities
CVE-2026-65700: h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-23 · updated 2026-10-24
- Weakness: CWE-22
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.
Affected products
- h2oai h2ogpt: through 0.2.1
References
- https://github.com/geo-chen/oss/blob/main/h2ogpt.md
- https://www.vulncheck.com/advisories/h2ogpt-path-traversal-via-openai-compatible-files-api
Get alerted when CVE-2026-65700 or the next vulnerability affects your stack