Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 1.5%top 27%

CVE-2026-65700: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in h2oai h2ogpt

0
Critical
VulnerabilityCVE-2026-65700cvecve-2026-65700
Published: 07/23/2026 (07/23/2026, 17:02:24 UTC)
Source: CVE Database V5
Vendor/Project: h2oai
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →cve
h2ogpt
pkg:github/h2ogpt
Affected versions
<=0.2.1

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

AILast updated: 07/30/2026, 22:32:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses