Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate internet-exposed h2oGPT instance
-
DeliverySend files API request with traversal in bearer token
-
ExploitBypass auth via empty default key
-
ExecutionWrite payload to startup hook file
-
PersistTrigger load/restart
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-48332
GHSA-ffpm-9hgc-84cg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB