CVE-2026-65700: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in h2oai h2ogpt
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.
AI Analysis
Technical Summary
CVE-2026-65700 is a path traversal vulnerability in h2oGPT (<=0.2.1) affecting the OpenAI-compatible files API. The get_user_dir function in openai_server/backend_utils.py uses the bearer token directly in os.path.join without sanitization. Since the default API key is empty, authentication is bypassed, enabling unauthenticated attackers to supply traversal sequences in the bearer token to access files outside the intended directory. This allows reading, writing, and deleting arbitrary files accessible to the server process. Attackers can achieve remote code execution by writing to startup hooks or files loaded by the application.
Potential Impact
The vulnerability permits unauthenticated remote attackers to perform arbitrary file read, write, and deletion on the server hosting h2oGPT. This can lead to remote code execution by placing malicious files in startup or application-loaded locations. The CVSS 4.0 base score is 9.3 (critical), reflecting the network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the affected API endpoints and avoid deploying vulnerable versions in untrusted environments. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-65700: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in h2oai h2ogpt
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 v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-65700 is a path traversal vulnerability in h2oGPT (<=0.2.1) affecting the OpenAI-compatible files API. The get_user_dir function in openai_server/backend_utils.py uses the bearer token directly in os.path.join without sanitization. Since the default API key is empty, authentication is bypassed, enabling unauthenticated attackers to supply traversal sequences in the bearer token to access files outside the intended directory. This allows reading, writing, and deleting arbitrary files accessible to the server process. Attackers can achieve remote code execution by writing to startup hooks or files loaded by the application.
Potential Impact
The vulnerability permits unauthenticated remote attackers to perform arbitrary file read, write, and deletion on the server hosting h2oGPT. This can lead to remote code execution by placing malicious files in startup or application-loaded locations. The CVSS 4.0 base score is 9.3 (critical), reflecting the network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the affected API endpoints and avoid deploying vulnerable versions in untrusted environments. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-22T20:26:09.980Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a624de29c2644c7f86daba4
Added to database: 07/23/2026, 17:22:42 UTC
Last enriched: 07/30/2026, 22:32:30 UTC
Last updated: 09/04/2026, 10:52:10 UTC
Views: 82
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.