CVE-2026-65700
published critical CVSS 4.0 · 9.3h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| h2oai | — | h2ogpt0 through 0.2.1 · Other versions: affected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| h2oai | h2ogpt | 0 through 0.2.1 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- Researcher Disclosure https://github.com/geo-chen/oss/blob/main/h2ogpt.md
- https://www.vulncheck.com/advisories/h2ogpt-path-traversal-via-openai-compatible-files-api
Provider assertions
2VulnCheck · cna
h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6010b6bb3259fbb1e99d1ff9b93582679dcb4cea88b3691fe1cedefd23b76708
- Ingested
- 23 Sep 2026, 09:26:32 UTC
- Source record
- Official CVE record