# CVE-2026-65700: h2oGPT 0.2.1 Path Traversal via OpenAI-compatible Files API

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-23T17:02:24.458Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- h2oai h2ogpt: up to 0.2.1

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/geo-chen/oss/blob/main/h2ogpt.md> (exploit, technical-description)
- <https://www.vulncheck.com/advisories/h2ogpt-path-traversal-via-openai-compatible-files-api> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-65700](https://www.cve.org/CVERecord?id=CVE-2026-65700), CVE Terms of Use, modified 2026-07-27
- NVD: [CVE-2026-65700](https://nvd.nist.gov/vuln/detail/CVE-2026-65700), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-65700 · Whole record: https://cve.day/CVE-2026-65700.json · Rebuilt by cve.day 2026-11-25T22:59:29.944Z
