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…

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/23/2026, 17:37:18 UTC

Technical Analysis

CVE-2026-65700 is a path traversal vulnerability in h2oGPT (<=0.2.1) affecting the OpenAI-compatible files API. The vulnerability arises because the get_user_dir function uses the bearer token directly as a path component without sanitization, allowing traversal sequences. Since the default API key is empty, authentication is bypassed, enabling unauthenticated attackers to access, modify, or delete arbitrary files accessible to the server process. This can lead to remote code execution by writing malicious content to startup hooks or application-loaded files.

Potential Impact

An unauthenticated remote attacker can read, write, and delete arbitrary files on the server running h2oGPT (<=0.2.1). This includes the ability to escape the intended user directory via path traversal. The attacker can achieve remote code execution by placing malicious code in startup hooks or files loaded by the application, potentially compromising the entire server.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict network access to the vulnerable API, and consider disabling or restricting the OpenAI-compatible files API functionality. Monitor for updates from the vendor h2oai regarding an official fix or mitigation.

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/23/2026, 17:37:18 UTC

Last updated: 07/23/2026, 21:07:52 UTC

Views: 9

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