Vulnerability 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.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://github.com/geo-chen/oss/blob/main/h2ogpt.md
- https://www.vulncheck.com/advisories/h2ogpt-path-traversal-via-openai-compatible
FAQ
What is CVE-2026-65700?
CVE-2026-65700 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 th...
How severe is CVE-2026-65700?
CVE-2026-65700 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-65700?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.