Skip to main content

h2oGPT EUVDEUVD-2026-48332

| CVE-2026-65700 CRITICAL
Path Traversal (CWE-22)
2026-07-23 VulnCheck GHSA-ffpm-9hgc-84cg
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Locate internet-exposed h2oGPT instance
  2. Delivery
    Send files API request with traversal in bearer token
  3. Exploit
    Bypass auth via empty default key
  4. Execution
    Write payload to startup hook file
  5. Persist
    Trigger load/restart
  6. Impact
    Execute code as server process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the OpenAI-compatible files API is reachable and that the h2oGPT API key remains at its default empty value, which is the shipped default and causes authentication to be bypassed. The attacker supplies traversal sequences inside the HTTP Authorization bearer token, which get_user_dir joins unsanitized into a filesystem path; the content, delete, and upload endpoints then operate outside the intended user directory. RCE specifically requires that a traversal-writable path corresponds to a startup hook or a file the application loads, and that the server process has write permission to it. Limiting factors: if a non-empty API key is configured, unauthenticated access is blocked; if the files API is not network-exposed or the process runs with a restricted/read-only filesystem, arbitrary write and code execution are constrained. Per CVSS 4.0 AV:N/AC:L/AT:N/PR:N/UI:N, no user interaction or authentication is needed against a default-configured, network-reachable instance.

Impact

This is a genuine high-priority issue rather than an inflated CVSS number. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) describes network-reachable, low-complexity, unauthenticated exploitation with high confidentiality, integrity, and availability impact, and the description independently corroborates every one of those metrics - the empty default key removes the only authentication barrier and traversal yields arbitrary file write leading to RCE. Publicly available exploit code (VulnCheck advisory plus a write-up) raises the realistic likelihood of opportunistic use. No EPSS score was provided in the input, so probabilistic exploitation frequency cannot be quantified here, and the vulnerability is not listed in CISA KEV, meaning active exploitation is not confirmed - treat this as POC-available, not yet confirmed in-the-wild. No SSVC decision data was supplied. The main factor limiting mass exploitation is deployment footprint: h2oGPT is a niche self-hosted LLM application, not ubiquitous infrastructure, so exposure depends on how many instances are internet-facing with default configuration.

Exploit ScenarioDerived

An attacker locates an internet-exposed h2oGPT instance running with the default empty API key and sends a request to the OpenAI-compatible files upload endpoint using a bearer token containing '../' sequences that resolve to a startup-hook or application-loaded file path. The server writes attacker content to that location, and on next load or restart the planted file executes, yielding remote code execution as the server process. Public exploit code and a write-up exist, lowering the skill required to reproduce this.

Monitor Track and reassess. Why: Vendor states no customer action required.
No patch listed yet 1.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Remote code execution in h2oGPT through 0.2.1 lets unauthenticated remote attackers read, write, and delete arbitrary files by injecting path traversal sequences into the HTTP bearer token of the OpenAI-compatible files API. Because the shipped default API key is empty, authentication is effectively bypassed and the token string is used directly as a filesystem path component, so an attacker can escape the user directory and plant startup hooks or application-loaded files to execute code. Publicly available exploit code exists (reported by VulnCheck); there is no public exploit identified in CISA KEV, and the CVSS 4.0 base score is 9.3 (Critical).

RemediationAI

No vendor-released patch version is identified in the provided data, so upgrade to a fixed release once the h2oGPT maintainers publish one; monitor the VulnCheck advisory (https://www.vulncheck.com/advisories/h2ogpt-path-traversal-via-openai-compatible-files-api) for the fixed version. As the most impactful compensating control, set a strong non-empty API key so the empty-default authentication bypass is closed, which stops unauthenticated callers but does not by itself sanitize traversal for authenticated ones. Additionally, restrict network exposure of the OpenAI-compatible files API by binding it to localhost or placing it behind an authenticating reverse proxy or VPN, and run the server process as a low-privilege user in a container with a read-only filesystem for code and startup-hook directories so a successful write cannot achieve persistence or RCE - the trade-off is that legitimate file-upload workflows must be re-permissioned. Where the files API is not needed, disable it entirely. Reference the public analysis at https://github.com/geo-chen/oss/blob/main/h2ogpt.md when validating mitigations.

Affected VersionsENISA

h2ogpt 0 ≤0.2.1

Affected Packages

euvd h2ogpt no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

h2oGPT is an open-source LLM stack that exposes an OpenAI-compatible REST API. The flaw is a classic CWE-22 Improper Limitation of a Pathname to a Restricted Directory (path traversal): the get_user_dir function in openai_server/backend_utils.py concatenates the caller-supplied bearer token into a filesystem path via os.path.join without sanitization. os.path.join is dangerous here because an absolute or '../'-laden component silently discards the intended base directory or walks above it. The token normally acts as a per-user namespace key, but it is fully attacker-controlled and, combined with an empty default API key, is never validated. The vulnerable surface spans the files content (read), delete, and upload (write) endpoints, giving full read/write/delete over any path the server process can access.

Know when H2Ogpt gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.8 CRITICAL

Network-reachable files API with empty default key gives unauthenticated (PR:N), low-complexity access; unsanitized traversal grants arbitrary read/write/delete and RCE, so C/I/A all High.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

h2oGPT versions through 0.2.1 contain an unauthenticated remote code execution vulnerability in the OpenAI-compatible files API that allows attackers to read, write, and delete arbitrary files and execute code without requiring valid credentials. Organizations running h2oGPT face immediate risk of complete system compromise and data exfiltration, particularly in internet-facing or network-accessible deployments.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable the OpenAI-compatible files API endpoint entirely; implement network-level access controls restricting API requests to trusted sources only; enable detailed logging and alerting for all API access attempts; deploy Web Application Firewall (WAF) rules to detect path traversal patterns in HTTP bearer tokens; implement file integrity monitoring on system startup directories and application configuration files.

Threat Intelligence Overview

EPSS Score
1.3%
Top 33% exploitable
Prevalence
Low
niche self-hosted open-source LLM application, limited production footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 1.3%
Patch available No
Active threat No
Deciding rule
Vendor states no customer action required
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy